X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=freeglut-1.3%2Ffreeglut_display.c;h=7f7e3c12d4fec9d18c8277a7dc520f820845cc5d;hb=2865e77a6dfe94dff5ab68b7c8c0955a472c8462;hp=9117a10952197bc7dd3d848ca2585afd163a6427;hpb=8fca860c3dd3f20027fc730c386047166c3b9ee7;p=freeglut diff --git a/freeglut-1.3/freeglut_display.c b/freeglut-1.3/freeglut_display.c index 9117a10..7f7e3c1 100644 --- a/freeglut-1.3/freeglut_display.c +++ b/freeglut-1.3/freeglut_display.c @@ -76,6 +76,11 @@ void FGAPIENTRY glutSwapBuffers( void ) #if TARGET_HOST_UNIX_X11 /* + * If it's single-buffered, we shouldn't be here. + */ + if ( ! fgStructure.Window->Window.DoubleBuffered ) return ; + + /* * Issue the glXSwapBuffers call and be done with it */ glXSwapBuffers( fgDisplay.Display, fgStructure.Window->Window.Handle );