Module: Mesa
Branch: master
Commit: 21fe86b036451bb8352ed6aa0774d49f45fcd417
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=21fe86b036451bb8352ed6aa0774d49f45fcd417

Author: José Fonseca <jfons...@vmware.com>
Date:   Mon Feb 15 00:25:43 2010 +0000

python/retrace: Reconstruct blend state from binary blobs.

---

 progs/gallium/python/retrace/interpreter.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/progs/gallium/python/retrace/interpreter.py 
b/progs/gallium/python/retrace/interpreter.py
index a34122e..2db71a2 100755
--- a/progs/gallium/python/retrace/interpreter.py
+++ b/progs/gallium/python/retrace/interpreter.py
@@ -376,6 +376,9 @@ class Context(Object):
         pass
     
     def create_blend_state(self, state):
+        if isinstance(state, str):
+            state = gallium.Blend(state)
+            sys.stdout.write('\t%s\n' % state)
         return state
 
     def bind_blend_state(self, state):

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to