X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fegl%2Ffg_display_egl.c;h=896b61acbf9191ed432a988d3bb887e3888429ef;hb=5ad986faebb7567081885408f90f6ced0554543c;hp=260b6ab9f86c8c2713c84dd4b7547644211d0352;hpb=7fbb15bc63c7937cab772bd942883e3811acbabf;p=freeglut diff --git a/src/egl/fg_display_egl.c b/src/egl/fg_display_egl.c index 260b6ab..896b61a 100644 --- a/src/egl/fg_display_egl.c +++ b/src/egl/fg_display_egl.c @@ -26,11 +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!"); */ - eglSwapBuffers( pDisplayPtr->eglDisplay, CurrentWindow->Window.pContext.eglSurface ); + if (!eglSwapBuffers(pDisplayPtr->egl.Display, CurrentWindow->Window.pContext.egl.Surface)) + fgError("eglSwapBuffers: error %x\n", eglGetError()); }