diff options
Diffstat (limited to 'backends/graphics')
-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 | ||||
-rw-r--r-- | backends/graphics/openglsdl/openglsdl-graphics.h | 1 |
4 files changed, 7 insertions, 8 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 diff --git a/backends/graphics/openglsdl/openglsdl-graphics.h b/backends/graphics/openglsdl/openglsdl-graphics.h index 548988e43a..d39c0814de 100644 --- a/backends/graphics/openglsdl/openglsdl-graphics.h +++ b/backends/graphics/openglsdl/openglsdl-graphics.h @@ -30,7 +30,6 @@ #if defined(ARRAYSIZE) && !defined(_WINDOWS_) #undef ARRAYSIZE #endif -#include <SDL_opengl.h> #include "backends/graphics/opengl/opengl-graphics.h" |