summaryrefslogtreecommitdiff
path: root/wrappers
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2016-04-04 16:18:11 +0100
committerJose Fonseca <jfonseca@vmware.com>2016-04-04 16:18:11 +0100
commit1f9e61da66b89bdb2abe1882ea3b246a4e46c830 (patch)
tree85af97867e32f120055ac85df4285593f069c75d /wrappers
parent8d6653ac387e5fd1a2eae549239099a05e9cac03 (diff)
gltrace: Use glfeature to decide when PBOs are supported.
Diffstat (limited to 'wrappers')
-rw-r--r--wrappers/gltrace.py2
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