From 0d9fa743489bd9bf9b1c33541dc7506136e030d0 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Mon, 22 Nov 2004 21:22:09 +0000 Subject: [PATCH] Potential fix for Sun glCopyPixels problem. It's an ifdef, copying pixels with offset of 1 pixel. --- source/blender/src/interface.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/blender/src/interface.c b/source/blender/src/interface.c index 10a46dec81e..84fd6421d2f 100644 --- a/source/blender/src/interface.c +++ b/source/blender/src/interface.c @@ -367,7 +367,11 @@ void ui_block_flush_back(uiBlock *block) glReadBuffer(GL_BACK); glDrawBuffer(GL_FRONT); glRasterPos2i(minx, miny); +#ifdef __sun__ + myglCopyPixels(minx, miny+1, sizex, sizey, GL_COLOR); +#else myglCopyPixels(minx, miny, sizex, sizey, GL_COLOR); +#endif glEnable(GL_DITHER); glFlush(); glDrawBuffer(GL_BACK);