diff options
author | Johannes Schickel | 2015-12-12 22:08:33 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-03-16 20:29:25 +0100 |
commit | d6d3e17d53754acedce0b1706e73f929d29b5eb8 (patch) | |
tree | b6e3961fff722a9a07fc17b35eea4ebaa124c94b /backends/graphics/opengl/opengl-func.h | |
parent | 9816e4f35035b6fa461dc1bc255ced533f5feaf9 (diff) | |
download | scummvm-rg350-d6d3e17d53754acedce0b1706e73f929d29b5eb8.tar.gz scummvm-rg350-d6d3e17d53754acedce0b1706e73f929d29b5eb8.tar.bz2 scummvm-rg350-d6d3e17d53754acedce0b1706e73f929d29b5eb8.zip |
OPENGL: Allow runtime specification of OpenGL mode.
Formerly, we required that the OpenGL mode was fixed at compile time. Now we
allow the code to work with whatever it is given at runtime.
It is still possible to force a context type on compile time.
Diffstat (limited to 'backends/graphics/opengl/opengl-func.h')
-rw-r--r-- | backends/graphics/opengl/opengl-func.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/backends/graphics/opengl/opengl-func.h b/backends/graphics/opengl/opengl-func.h index 75bc0b4e81..0ff39c845a 100644 --- a/backends/graphics/opengl/opengl-func.h +++ b/backends/graphics/opengl/opengl-func.h @@ -70,9 +70,10 @@ GL_FUNC_DEF(void, glColor4f, (GLfloat red, GLfloat green, GLfloat blue, GLfloat GL_FUNC_DEF(void, glViewport, (GLint x, GLint y, GLsizei width, GLsizei height)); GL_FUNC_DEF(void, glMatrixMode, (GLenum mode)); GL_FUNC_DEF(void, glLoadIdentity, ()); -#ifdef USE_GLES +#if !USE_FORCED_GL GL_FUNC_DEF(void, glOrthof, (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar)); -#else +#endif +#if !USE_FORCED_GLES GL_FUNC_DEF(void, glOrtho, (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble near_val, GLdouble far_val)); #endif GL_FUNC_DEF(void, glShadeModel, (GLenum mode)); |