From 10f6117905f8e73b03ee997a5230096029918964 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Thu, 15 Aug 2013 18:15:55 +0000 Subject: [PATCH] Add some ifdef magic to GLFunctions.cpp to make it not directly dependant on GLESv3. --- Source/Plugins/Plugin_VideoOGL/Src/GLFunctions.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/GLFunctions.cpp b/Source/Plugins/Plugin_VideoOGL/Src/GLFunctions.cpp index e174a1e64d..1f4711550c 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/GLFunctions.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/GLFunctions.cpp @@ -72,7 +72,11 @@ namespace GLFunc LoadFunction("glDeleteQueries", (void**)&glDeleteQueries); LoadFunction("glGenQueries", (void**)&glGenQueries); { +#ifdef USE_GLES LoadFunction("glMapBufferOES", (void**)&glMapBuffer); +#else + LoadFunction("glMapBuffer", (void**)&glMapBuffer); +#endif LoadFunction("glUnmapBuffer", (void**)&glUnmapBuffer); LoadFunction("glMapBufferRange", (void**)&glMapBufferRange); LoadFunction("glBindBufferRange", (void**)&glBindBufferRange);