diff options
author | José Fonseca <[email protected]> | 2009-11-02 09:47:47 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-11-03 17:12:33 +0000 |
commit | 3e8f665c1eae5c93c1349e04476950dcd7a42073 (patch) | |
tree | 45b31416c501b71da641a8d46cf4dcac962fe6f2 /src/gallium/state_trackers | |
parent | a2e868b977dfbd170b8016c0386a773f2cdd0b73 (diff) |
python/retrace: Cope with null constant buffers.
Diffstat (limited to 'src/gallium/state_trackers')
-rwxr-xr-x | src/gallium/state_trackers/python/retrace/interpreter.py | 2 |
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) |