X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_display.c;h=601375b3b9c9cdb09681cfe29e7ecd0bdcd28d60;hb=027fcf9e66356b06563140740f8d1c7bc05c9987;hp=8faa4a5a3a164c7a51f050cbfe0f94f8dc5669ec;hpb=78d46c63a115e0a868d83f365399864b62a4ea7f;p=freeglut diff --git a/src/freeglut_display.c b/src/freeglut_display.c index 8faa4a5..601375b 100644 --- a/src/freeglut_display.c +++ b/src/freeglut_display.c @@ -48,13 +48,17 @@ void FGAPIENTRY glutSwapBuffers( void ) FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutSwapBuffers" ); FREEGLUT_EXIT_IF_NO_WINDOW ( "glutSwapBuffers" ); + /* + * "glXSwapBuffers" already performs an implicit call to "glFlush". What + * about "SwapBuffers"? + */ glFlush( ); if( ! fgStructure.CurrentWindow->Window.DoubleBuffered ) return; -#if TARGET_HOST_UNIX_X11 +#if TARGET_HOST_POSIX_X11 glXSwapBuffers( fgDisplay.Display, fgStructure.CurrentWindow->Window.Handle ); -#elif TARGET_HOST_WIN32 || TARGET_HOST_WINCE +#elif TARGET_HOST_MS_WINDOWS SwapBuffers( fgStructure.CurrentWindow->Window.Device ); #endif