mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-10 16:09:09 +00:00
Use GLES extension header for compilation
This commit is contained in:
1 parent
64156fc039
commit
c53f440fd9
3 files changed
+12
-1
No files matched your search
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in new issue
Block a user