From 6eeecbc5af0ca37e42142f794fd11d4d98f21c3c Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 21 Jun 2015 12:11:00 -0700 Subject: [PATCH] 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. --- gfx/gl_common.h | 1 - gfx_es2/gl_state.cpp | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) 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;