diff options
Diffstat (limited to 'backends/graphics/opengl')
-rw-r--r-- | backends/graphics/opengl/glerrorcheck.cpp | 6 | ||||
-rw-r--r-- | backends/graphics/opengl/gltexture.h | 6 | ||||
-rw-r--r-- | backends/graphics/opengl/opengl-graphics.cpp | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/backends/graphics/opengl/glerrorcheck.cpp b/backends/graphics/opengl/glerrorcheck.cpp index 3abcc27eed..9989a4cf9d 100644 --- a/backends/graphics/opengl/glerrorcheck.cpp +++ b/backends/graphics/opengl/glerrorcheck.cpp @@ -39,10 +39,10 @@ #undef ARRAYSIZE #endif -#ifdef MACOSX -#include <OpenGL/gl.h> -#elif defined(USE_GLES) +#if defined(USE_GLES) #include <GLES/gl.h> +#elif defined(MACOSX) +#include <OpenGL/gl.h> #else #include <GL/gl.h> #endif diff --git a/backends/graphics/opengl/gltexture.h b/backends/graphics/opengl/gltexture.h index 92bd0ec8d9..e7951a0c96 100644 --- a/backends/graphics/opengl/gltexture.h +++ b/backends/graphics/opengl/gltexture.h @@ -32,10 +32,10 @@ #undef ARRAYSIZE #endif -#if defined(SDL_BACKEND) -#include <SDL_opengl.h> -#elif defined(USE_GLES) +#if defined(USE_GLES) #include <GLES/gl.h> +#elif defined(SDL_BACKEND) +#include <SDL_opengl.h> #else #include <GL/gl.h> #endif diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp index 35dd9a6046..e2f8dd4d30 100644 --- a/backends/graphics/opengl/opengl-graphics.cpp +++ b/backends/graphics/opengl/opengl-graphics.cpp @@ -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 |