diff options
Diffstat (limited to 'wrappers/gltrace.py')
-rw-r--r-- | wrappers/gltrace.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/wrappers/gltrace.py b/wrappers/gltrace.py index 769f2e34..3695e977 100644 --- a/wrappers/gltrace.py +++ b/wrappers/gltrace.py @@ -209,7 +209,15 @@ class GlTracer(Tracer): print '}' print - print 'static void _trace_user_arrays(GLuint count);' + print r'static void _trace_user_arrays(GLuint count);' + print + + print r'static void _fakeStringMarker(GLsizei len, const GLvoid * string);' + print + print r'static inline void' + print r'_fakeStringMarker(const std::string &s) {' + print r' _fakeStringMarker(s.length(), s.data());' + print r'}' print print '// whether glLockArraysEXT() has ever been called' @@ -1108,6 +1116,12 @@ class GlTracer(Tracer): print '}' print + # Fake glStringMarkerGREMEDY + print r'static void _fakeStringMarker(GLsizei len, const GLvoid * string) {' + glStringMarkerGREMEDY = api.getFunctionByName('glStringMarkerGREMEDY') + self.fake_call(glStringMarkerGREMEDY, ['len', 'string']) + print r'}' + # # Hooks for glTexCoordPointer, which is identical to the other array # pointers except the fact that it is indexed by glClientActiveTexture. |