diff --git a/gfx/gl_common.h b/gfx/gl_common.h index d716602de3..ca030a6949 100644 --- a/gfx/gl_common.h +++ b/gfx/gl_common.h @@ -6,7 +6,6 @@ #elif defined(USING_GLES2) #include #include -#include "EGL/egl.h" // At least Nokia platforms need the three below #include typedef char GLchar; diff --git a/gfx_es2/gl_state.cpp b/gfx_es2/gl_state.cpp index 6157d49b4f..200ec4ffdb 100644 --- a/gfx_es2/gl_state.cpp +++ b/gfx_es2/gl_state.cpp @@ -23,6 +23,9 @@ PFNGLBINDVERTEXARRAYOESPROC glBindVertexArrayOES; PFNGLDELETEVERTEXARRAYSOESPROC glDeleteVertexArraysOES; PFNGLISVERTEXARRAYOESPROC glIsVertexArrayOES; #endif +#ifndef IOS +#include "EGL/egl.h" +#endif #endif OpenGLState glstate;