Potential fix for Sun glCopyPixels problem.

It's an ifdef, copying pixels with offset of 1 pixel.
This commit is contained in:
2004-11-22 21:22:09 +00:00
parent f7b8e05f8e
commit 0d9fa74348

View File

@@ -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);