X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2FCommon%2Ffreeglut_display.c;h=8264949aa55040f75e3407683b233f9d29318a69;hb=ee696b7ee5011ba23716abe9ffaeb73c6cfac351;hp=f13319c80177031a807bc72521ad215fe5d0b5df;hpb=83a7f1444d1388983a7b756dde26b0cc74101b13;p=freeglut diff --git a/src/Common/freeglut_display.c b/src/Common/freeglut_display.c index f13319c..8264949 100644 --- a/src/Common/freeglut_display.c +++ b/src/Common/freeglut_display.c @@ -28,6 +28,11 @@ #include #include "freeglut_internal.h" + +/* Function prototypes */ +extern void fgPlatformGlutSwapBuffers( SFG_PlatformDisplay *pDisplayPtr, SFG_Window* CurrentWindow ); + + /* -- INTERFACE FUNCTIONS -------------------------------------------------- */ /* @@ -61,11 +66,7 @@ void FGAPIENTRY glutSwapBuffers( void ) if( ! fgStructure.CurrentWindow->Window.DoubleBuffered ) return; -#if TARGET_HOST_POSIX_X11 - glXSwapBuffers( fgDisplay.pDisplay.Display, fgStructure.CurrentWindow->Window.Handle ); -#elif TARGET_HOST_MS_WINDOWS - SwapBuffers( fgStructure.CurrentWindow->Window.Device ); -#endif + fgPlatformGlutSwapBuffers( &fgDisplay.pDisplay, fgStructure.CurrentWindow ); /* GLUT_FPS env var support */ if( fgState.FPSInterval )