From: José Fonseca Date: Mon, 2 Nov 2009 09:47:47 +0000 (+0000) Subject: python/retrace: Cope with null constant buffers. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3e8f665c1eae5c93c1349e04476950dcd7a42073;p=mesa.git python/retrace: Cope with null constant buffers. --- 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)