Minor fixes for the ogl-es driver

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@1729 dfc29bdd-3216-0410-991c-e03cc46cb475
master
hybrid 2008-11-13 00:45:00 +00:00
parent cdb0c7f747
commit d6c32ef514
1 changed files with 5 additions and 3 deletions

View File

@ -86,7 +86,9 @@ COGLES1Driver::COGLES1Driver(const SIrrlichtCreationParameters& params,
os::Printer::log("Could not create surface for OpenGL-ES1 display."); os::Printer::log("Could not create surface for OpenGL-ES1 display.");
} }
// eglBindAPI(EGL_OPENGL_ES_API); #ifdef GL_OES_VERSION_1_2
eglBindAPI(EGL_OPENGL_ES_API);
#endif
EglContext = eglCreateContext(EglDisplay, config, EGL_NO_CONTEXT, NULL); EglContext = eglCreateContext(EglDisplay, config, EGL_NO_CONTEXT, NULL);
if (testEGLError()) if (testEGLError())
{ {
@ -103,7 +105,7 @@ COGLES1Driver::COGLES1Driver(const SIrrlichtCreationParameters& params,
// set vsync // set vsync
if (params.Vsync) if (params.Vsync)
eglSwapInterval(EglDisplay, 30); eglSwapInterval(EglDisplay, 1);
} }
@ -162,7 +164,7 @@ bool COGLES1Driver::genericDriverInit(const core::dimension2d<s32>& screenSize,
#endif #endif
// TODO ogl-es // TODO ogl-es
// glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, 1); // glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, 1);
// glClearDepth(1.0); glClearDepthf(1.0f);
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST); glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);
glDepthFunc(GL_LEQUAL); glDepthFunc(GL_LEQUAL);