Avoid pulling in EGL except where needed.

Seems to pull in X11, which pulls in a bunch of defines we don't want.
This fixes compilation on such systems.
This commit is contained in:
Unknown W. Brackets committed 2015-06-21 12:11:00 -07:00
1 parent aa194f1e78
commit 6eeecbc5af
2 files changed
+3 -1

No files matched your search

-1
View File
@@ -6,7 +6,6 @@
#elif defined(USING_GLES2)
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include "EGL/egl.h"
// At least Nokia platforms need the three below
#include <KHR/khrplatform.h>
typedef char GLchar;
+3
View File
@@ -23,6 +23,9 @@ PFNGLBINDVERTEXARRAYOESPROC glBindVertexArrayOES;
PFNGLDELETEVERTEXARRAYSOESPROC glDeleteVertexArraysOES;
PFNGLISVERTEXARRAYOESPROC glIsVertexArrayOES;
#endif
#ifndef IOS
#include "EGL/egl.h"
#endif
#endif
OpenGLState glstate;