From 205423637fd4ffc00beef769acc3d904c7fbd202 Mon Sep 17 00:00:00 2001 From: Sacha Date: Mon, 2 Jun 2014 12:08:29 +1000 Subject: [PATCH] Remove MAY_HAVE_GLES3 --- gfx/gl_common.h | 3 --- gfx_es2/gl_state.cpp | 3 --- 2 files changed, 6 deletions(-) diff --git a/gfx/gl_common.h b/gfx/gl_common.h index 856c4e3248..f960ee45ea 100644 --- a/gfx/gl_common.h +++ b/gfx/gl_common.h @@ -26,6 +26,3 @@ typedef char GLchar; #include "../gfx_es2/gl3stub.h" #endif -// Now that glew is upgraded beyond 4.3, we can define MAY_HAVE_GLES3 on GL platforms -#define MAY_HAVE_GLES3 1 - diff --git a/gfx_es2/gl_state.cpp b/gfx_es2/gl_state.cpp index ddfa3daaf8..fc976a7369 100644 --- a/gfx_es2/gl_state.cpp +++ b/gfx_es2/gl_state.cpp @@ -151,8 +151,6 @@ void CheckGLExtensions() { #endif #if defined(USING_GLES2) - // MAY_HAVE_GLES3 defined on all platforms that support it -#if defined(MAY_HAVE_GLES3) // Try to load GLES 3.0 only if "3.0" found in version // This simple heuristic avoids issues on older devices where you can only call eglGetProcAddress a limited // number of times. Make sure to check for 3.0 in the shader version too to avoid false positives, see #5584. @@ -166,7 +164,6 @@ void CheckGLExtensions() { gl_extensions.GLES3 = false; } } -#endif #else // If the GL version >= 4.3, we know it's a true superset of OpenGL ES 3.0 and can thus enable // all the same modern paths.