From a094eb4e9a79fe1cd291a3393ed06c3d6439ae06 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Mon, 9 Jan 2006 21:51:17 +0000 Subject: [PATCH] Orange: Silly error in patch... the buffer for wpaint/vpaint got allocated with only half the size... --- source/blender/src/vpaint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/src/vpaint.c b/source/blender/src/vpaint.c index 836c98bdb22..498fd4195f8 100644 --- a/source/blender/src/vpaint.c +++ b/source/blender/src/vpaint.c @@ -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);