X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fegl%2Ffg_display_egl.c;h=896b61acbf9191ed432a988d3bb887e3888429ef;hb=cb1e59cf5e6ac8034ae91abfd320874004a44c88;hp=f94d873adea542fff540c81b2626f6f44f63e311;hpb=3bc0d3bc00228d6b5b6e63e6519a86a50971a90f;p=freeglut diff --git a/src/egl/fg_display_egl.c b/src/egl/fg_display_egl.c index f94d873..896b61a 100644 --- a/src/egl/fg_display_egl.c +++ b/src/egl/fg_display_egl.c @@ -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()); }