Orange: Silly error in patch... the buffer for wpaint/vpaint got allocated

with only half the size...
This commit is contained in:
Ton Roosendaal
2006-01-09 21:51:17 +00:00
parent e62fed936e
commit a094eb4e9a

View File

@@ -615,7 +615,7 @@ static int sample_backbuf_area(int x, int y, float size)
#ifdef __APPLE__
glReadBuffer(GL_AUX0);
#endif
ibuf = IMB_allocImBuf(size,size,32,IB_rect,0);
ibuf = IMB_allocImBuf(2*size + 1, 2*size + 1, 32, IB_rect, 0);
glReadPixels(x1+curarea->winrct.xmin, y1+curarea->winrct.ymin, x2-x1+1, y2-y1+1, GL_RGBA, GL_UNSIGNED_BYTE, ibuf->rect);
glReadBuffer(GL_BACK);