python/retrace: Update frame when PIPE_FLUSH_FRAME spotted.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Fri, 15 Aug 2008 09:33:35 +0000 (10:33 +0100)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Fri, 15 Aug 2008 09:35:19 +0000 (10:35 +0100)
src/gallium/state_trackers/python/retrace/interpreter.py

index 00b6376623f0949d65988a39c91aa4be6c633de1..fa9a65365c8cef05eda59076dd86eff0eba2d966 100755 (executable)
@@ -364,10 +364,11 @@ class Context(Object):
     
     def draw_arrays(self, mode, start, count):
         self.real.draw_arrays(mode, start, count)
-        self._update()
         
     def flush(self, flags):
         self.real.flush(flags)
+        if flags & gallium.PIPE_FLUSH_FRAME:
+            self._update()
         return None
 
     def clear(self, surface, value):