summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-11-02 09:47:47 +0000
committerJosé Fonseca <[email protected]>2009-11-03 17:12:33 +0000
commit3e8f665c1eae5c93c1349e04476950dcd7a42073 (patch)
tree45b31416c501b71da641a8d46cf4dcac962fe6f2
parenta2e868b977dfbd170b8016c0386a773f2cdd0b73 (diff)
python/retrace: Cope with null constant buffers.
-rwxr-xr-xsrc/gallium/state_trackers/python/retrace/interpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/python/retrace/interpreter.py b/src/gallium/state_trackers/python/retrace/interpreter.py
index c3bc6bc43c6..348f2e43683 100755
--- a/src/gallium/state_trackers/python/retrace/interpreter.py
+++ b/src/gallium/state_trackers/python/retrace/interpreter.py
@@ -459,7 +459,7 @@ class Context(Object):
sys.stdout.flush()
def set_constant_buffer(self, shader, index, buffer):
- if buffer is not None:
+ if buffer is not None and buffer.buffer is not None:
self.real.set_constant_buffer(shader, index, buffer.buffer)
self.dump_constant_buffer(buffer.buffer)