diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2015-02-05 23:25:02 +0000 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2015-02-05 23:25:02 +0000 |
commit | 22a850da47b94bd6c1802ecba9f5cde19f2b2807 (patch) | |
tree | d1300993da9093266e0bb06a617a89f6bec932d7 /dispatch | |
parent | 2c45d1976b87ee57c40a3dd383ef943cb8c2a090 (diff) |
gltrace,glretrace: Implement some of KHR_debug on top of EXT_debug_label on MacOSX.
Diffstat (limited to 'dispatch')
-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', |