Add some ifdef magic to GLFunctions.cpp to make it not directly dependant on GLESv3.

This commit is contained in:
Ryan Houdek 2013-08-15 18:15:55 +00:00
parent 06620ff364
commit 10f6117905
1 changed files with 4 additions and 0 deletions

View File

@ -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);