X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fegl%2Ffg_display_egl.c;h=f09422131cc046d4baa95efccddbe207a30cc113;hb=002dae879eda329f38fe65cb6f99d4f481a2eb47;hp=f94d873adea542fff540c81b2626f6f44f63e311;hpb=3bc0d3bc00228d6b5b6e63e6519a86a50971a90f;p=freeglut diff --git a/src/egl/fg_display_egl.c b/src/egl/fg_display_egl.c index f94d873..f094221 100644 --- a/src/egl/fg_display_egl.c +++ b/src/egl/fg_display_egl.c @@ -1,5 +1,5 @@ /* - * freeglut_display_android.c + * fg_display_android.c * * Display message posting, context buffer swapping. * @@ -26,12 +26,8 @@ #include #include "fg_internal.h" -#include -#define LOGI(...) ((void)__android_log_print(ANDROID_LOG_INFO, "FreeGLUT", __VA_ARGS__)) - void fgPlatformGlutSwapBuffers( SFG_PlatformDisplay *pDisplayPtr, SFG_Window* CurrentWindow ) { - /* LOGI("Swap!"); */ - if (!eglSwapBuffers(pDisplayPtr->eglDisplay, CurrentWindow->Window.pContext.eglSurface)) + if (!eglSwapBuffers(pDisplayPtr->egl.Display, CurrentWindow->Window.pContext.egl.Surface)) fgError("eglSwapBuffers: error %x\n", eglGetError()); }