Remove Android-specific code (logging) in fg_display_egl
authorSylvain Beucler <beuc@beuc.net>
Sat, 17 Mar 2012 14:14:01 +0000 (14:14 +0000)
committerSylvain Beucler <beuc@beuc.net>
Sat, 17 Mar 2012 14:14:01 +0000 (14:14 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1180 7f0cb862-5218-0410-a997-914c9d46530a

src/egl/fg_display_egl.c
src/egl/fg_window_egl.c

index 4bf3283..896b61a 100644 (file)
 #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 )
 {
-  /* LOGI("Swap!"); */
   if (!eglSwapBuffers(pDisplayPtr->egl.Display, CurrentWindow->Window.pContext.egl.Surface))
     fgError("eglSwapBuffers: error %x\n", eglGetError());
 }
index 48e330c..ad0ee22 100644 (file)
@@ -50,7 +50,7 @@ int fghChooseConfigEGL(EGLConfig* config) {
   EGLint num_config;
   if (!eglChooseConfig(fgDisplay.pDisplay.egl.Display,
                       attribs, config, 1, &num_config)) {
-    fgWarn("eglChooseConfig: error %x\n", eglGetError());
+    fgWarning("eglChooseConfig: error %x\n", eglGetError());
     return 0;
   }