OPENGLES: Fix the projection matrix and the includes.

svn-id: r54756
This commit is contained in:
Jordi Vilalta Prat 2010-12-03 19:43:27 +00:00
parent f1d961a35e
commit 5884f5a7ac
4 changed files with 7 additions and 8 deletions

View file

@ -1043,7 +1043,7 @@ void OpenGLGraphicsManager::initGL() {
glMatrixMode(GL_PROJECTION); CHECK_GL_ERROR();
glLoadIdentity(); CHECK_GL_ERROR();
#ifdef USE_GLES
glOrthox(0, _videoMode.hardwareWidth, _videoMode.hardwareHeight, 0, -1, 1); CHECK_GL_ERROR();
glOrthof(0, _videoMode.hardwareWidth, _videoMode.hardwareHeight, 0, -1, 1); CHECK_GL_ERROR();
#else
glOrtho(0, _videoMode.hardwareWidth, _videoMode.hardwareHeight, 0, -1, 1); CHECK_GL_ERROR();
#endif