From 316b6fa50936470ee4f3c14d982ec216ec352ea1 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Sun, 2 May 2010 13:04:08 +0100 Subject: retrace: Add sampler_view_destroy --- src/gallium/tests/python/retrace/interpreter.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gallium/tests/python/retrace/interpreter.py b/src/gallium/tests/python/retrace/interpreter.py index 7118ff85ed8..e58a69322ea 100755 --- a/src/gallium/tests/python/retrace/interpreter.py +++ b/src/gallium/tests/python/retrace/interpreter.py @@ -432,6 +432,9 @@ class Context(Object): swizzle_b = templ.swizzle_g, swizzle_a = templ.swizzle_a) + def sampler_view_destroy(self, view): + pass + def set_fragment_sampler_views(self, num, views): for i in range(num): self.real.set_fragment_sampler_view(i, views[i]) @@ -456,6 +459,10 @@ class Context(Object): return elements[0:num_elements] def bind_vertex_elements_state(self, state): + if state is None: + self.real.set_vertex_elements(0) + return + elements = state num_elements = len(elements) self.velems = elements -- cgit v1.2.3