- OSX bugfix: drawing selection code for vpaint and faceselect happens in AUX

buffers now. It only works nice at OSX (tested, linux and windows do not
  support it nicely)
  This fixes the annoying flashing during paint or select
This commit is contained in:
2003-06-11 15:43:20 +00:00
parent 47e7e146ba
commit 51c8bb6077
6 changed files with 46 additions and 13 deletions

View File

@@ -703,7 +703,9 @@ void backdrawview3d(int test)
return;
}
}
#ifdef __APPLE__
glDrawBuffer(GL_AUX0);
#endif
if(G.vd->drawtype > OB_WIRE) G.zbuf= TRUE;
curarea->win_swap &= ~WIN_BACK_OK;
@@ -758,6 +760,10 @@ void backdrawview3d(int test)
G.zbuf= FALSE;
glDisable(GL_DEPTH_TEST);
glEnable(GL_DITHER);
#ifdef __APPLE__
glDrawBuffer(GL_BACK); /* we were in aux buffers */
#endif
}