projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
correcting a few typos i made earlier in the comments
[freeglut]
/
src
/
egl
/
fg_display_egl.c
diff --git
a/src/egl/fg_display_egl.c
b/src/egl/fg_display_egl.c
index
260b6ab
..
896b61a
100644
(file)
--- a/
src/egl/fg_display_egl.c
+++ b/
src/egl/fg_display_egl.c
@@
-26,11
+26,8
@@
#include <GL/freeglut.h>
#include "fg_internal.h"
#include <GL/freeglut.h>
#include "fg_internal.h"
-#include <android/log.h>
-#define LOGI(...) ((void)__android_log_print(ANDROID_LOG_INFO, "FreeGLUT", __VA_ARGS__))
-
void fgPlatformGlutSwapBuffers( SFG_PlatformDisplay *pDisplayPtr, SFG_Window* CurrentWindow )
{
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());
}
}