diff options
-rw-r--r-- | dispatch/glproc.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dispatch/glproc.py b/dispatch/glproc.py index af82366d..81c30ad4 100644 --- a/dispatch/glproc.py +++ b/dispatch/glproc.py @@ -503,6 +503,14 @@ class GlDispatcher(Dispatcher): def failFunction(self, function): # We fake these when they are not available + if sys.platform == 'darwin': + # Fallback to EXT_debug_label on MacOSX + if function.name == 'glObjectLabel': + print r' _glLabelObjectEXT(identifier, name, length < 0 ? 0 : length, length == 0 ? "" : label);' + return + if function.name == 'glGetObjectLabel': + print r' _glGetObjectLabelEXT(identifier, name, bufSize, length, label);' + return if function.name in ( # GL_KHR_debug 'glDebugMessageControl', |