Remove Android-specific code (logging) in fg_display_egl
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1180 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
af95cbdafe
commit
6bc5a5c401
@ -26,12 +26,8 @@
|
|||||||
#include <GL/freeglut.h>
|
#include <GL/freeglut.h>
|
||||||
#include "fg_internal.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!"); */
|
|
||||||
if (!eglSwapBuffers(pDisplayPtr->egl.Display, CurrentWindow->Window.pContext.egl.Surface))
|
if (!eglSwapBuffers(pDisplayPtr->egl.Display, CurrentWindow->Window.pContext.egl.Surface))
|
||||||
fgError("eglSwapBuffers: error %x\n", eglGetError());
|
fgError("eglSwapBuffers: error %x\n", eglGetError());
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ int fghChooseConfigEGL(EGLConfig* config) {
|
|||||||
EGLint num_config;
|
EGLint num_config;
|
||||||
if (!eglChooseConfig(fgDisplay.pDisplay.egl.Display,
|
if (!eglChooseConfig(fgDisplay.pDisplay.egl.Display,
|
||||||
attribs, config, 1, &num_config)) {
|
attribs, config, 1, &num_config)) {
|
||||||
fgWarn("eglChooseConfig: error %x\n", eglGetError());
|
fgWarning("eglChooseConfig: error %x\n", eglGetError());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user