Use GLES extension header for compilation

This commit is contained in:
Janos Pantos authored and Baldur Karlsson committed 2017-05-23 08:42:44 -07:00
1 parent 64156fc039
commit c53f440fd9
3 files changed
+12 -1

No files matched your search

+1
View File
@@ -19,6 +19,7 @@ set(sources
gl_shader_refl.cpp
gl_shader_refl.h
official/glcorearb.h
official/glesext.h
official/glext.h
wrappers/gl_buffer_funcs.cpp
wrappers/gl_debug_funcs.cpp
+3
View File
@@ -37,6 +37,9 @@
// official headers
#include "official/glcorearb.h"
#include "official/glext.h"
// TODO there are some extensions which are in both headers but with different content
// however it does not seem to be a problem at this time
#include "official/glesext.h"
#if ENABLED(RDOC_WIN32)
#include "official/wglext.h"
+8 -1
View File
@@ -34,8 +34,15 @@ extern "C" {
** https://github.com/KhronosGroup/OpenGL-Registry
*/
#ifndef GL_APIENTRY
#define GL_APIENTRY
#endif
// TODO we use this hack, otherwise some typedefs may collide with the ones in glext.h
// glext.h must be included before glesext.h
#ifndef GL_APIENTRYP
#define GL_APIENTRYP GL_APIENTRY*
//#define GL_APIENTRYP GL_APIENTRY*
#define GL_APIENTRYP APIENTRYP
#endif
/* Generated on date 20170425 */