diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2016-04-04 16:18:11 +0100 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2016-04-04 16:18:11 +0100 |
commit | 1f9e61da66b89bdb2abe1882ea3b246a4e46c830 (patch) | |
tree | 85af97867e32f120055ac85df4285593f069c75d /wrappers | |
parent | 8d6653ac387e5fd1a2eae549239099a05e9cac03 (diff) |
gltrace: Use glfeature to decide when PBOs are supported.
Diffstat (limited to 'wrappers')
-rw-r--r-- | wrappers/gltrace.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wrappers/gltrace.py b/wrappers/gltrace.py index fe1af817..bd9fe529 100644 --- a/wrappers/gltrace.py +++ b/wrappers/gltrace.py @@ -933,7 +933,7 @@ class GlTracer(Tracer): print ' {' print ' gltrace::Context *ctx = gltrace::getContext();' print ' GLint _unpack_buffer = 0;' - print ' if (ctx->profile.desktop())' + print ' if (ctx->features.pixel_buffer_object)' print ' _glGetIntegerv(GL_PIXEL_UNPACK_BUFFER_BINDING, &_unpack_buffer);' print ' if (_unpack_buffer) {' print ' trace::localWriter.writePointer((uintptr_t)%s);' % arg.name |