First set of changes to fix compilation errors and initialise the gles3 renderer for Mac OS X. Still broken at this point.
This commit is contained in:
parent
76c2e8583e
commit
55d425807f
7 changed files with 49 additions and 17 deletions
|
|
@ -150,12 +150,26 @@ typedef unsigned int GLhandleARB;
|
|||
typedef unsigned short GLhalfARB;
|
||||
typedef unsigned short GLhalf;
|
||||
typedef GLint GLfixed;
|
||||
// Temporary work around for upstream issue: https://github.com/Dav1dde/glad/issues/70
|
||||
// Originally fixed by Algorithmus, reapplied in master
|
||||
#if defined(__APPLE__)
|
||||
typedef long GLintptr;
|
||||
typedef long GLsizeiptr;
|
||||
#else
|
||||
typedef ptrdiff_t GLintptr;
|
||||
typedef ptrdiff_t GLsizeiptr;
|
||||
#endif
|
||||
typedef int64_t GLint64;
|
||||
typedef uint64_t GLuint64;
|
||||
// Temporary work around for upstream issue: https://github.com/Dav1dde/glad/issues/70
|
||||
// Originally fixed by Algorithmus, reapplied in master
|
||||
#if defined(__APPLE__)
|
||||
typedef long GLintptrARB;
|
||||
typedef long GLsizeiptrARB;
|
||||
#else
|
||||
typedef ptrdiff_t GLintptrARB;
|
||||
typedef ptrdiff_t GLsizeiptrARB;
|
||||
#endif
|
||||
typedef int64_t GLint64EXT;
|
||||
typedef uint64_t GLuint64EXT;
|
||||
typedef struct __GLsync *GLsync;
|
||||
|
|
|
|||
|
|
@ -136,9 +136,13 @@ void RasterizerGLES3::initialize() {
|
|||
ERR_PRINT("Error initializing GLAD");
|
||||
}
|
||||
|
||||
#ifdef __APPLE__
|
||||
// FIXME glDebugMessageCallbackARB does not seem to work on Mac OS X and opengl 3, this may be an issue with our opengl canvas..
|
||||
#else
|
||||
glEnable(_EXT_DEBUG_OUTPUT_SYNCHRONOUS_ARB);
|
||||
glDebugMessageCallbackARB(_gl_debug_print, NULL);
|
||||
glEnable(_EXT_DEBUG_OUTPUT);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue