mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
Fix some preprocessor logic errors regrading GL ES on ARM devices with desktop operating systems.
git-svn-id: https://svn.eduke32.com/eduke32@6603 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
af6097a281
commit
4978a8f167
2 changed files with 4 additions and 1 deletions
|
@ -24,6 +24,9 @@
|
||||||
# include <OpenGL/glu.h>
|
# include <OpenGL/glu.h>
|
||||||
#elif defined EDUKE32_IOS
|
#elif defined EDUKE32_IOS
|
||||||
# include <OpenGLES/ES1/gl.h>
|
# include <OpenGLES/ES1/gl.h>
|
||||||
|
#elif defined EDUKE32_GLES
|
||||||
|
# include <SDL2/SDL_opengles.h>
|
||||||
|
# include <SDL2/SDL_opengl_glext.h>
|
||||||
#else
|
#else
|
||||||
# include <GL/gl.h>
|
# include <GL/gl.h>
|
||||||
# include <GL/glu.h>
|
# include <GL/glu.h>
|
||||||
|
|
|
@ -1593,7 +1593,7 @@ int32_t setvideomode(int32_t x, int32_t y, int32_t c, int32_t fs)
|
||||||
int32_t value;
|
int32_t value;
|
||||||
} sdlayer_gl_attributes[] =
|
} sdlayer_gl_attributes[] =
|
||||||
{
|
{
|
||||||
#ifdef EDUKE32_TOUCH_DEVICES
|
#ifdef EDUKE32_GLES
|
||||||
{ SDL_GL_CONTEXT_MAJOR_VERSION, 1 },
|
{ SDL_GL_CONTEXT_MAJOR_VERSION, 1 },
|
||||||
{ SDL_GL_CONTEXT_MINOR_VERSION, 1 },
|
{ SDL_GL_CONTEXT_MINOR_VERSION, 1 },
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue