From 21fe86b036451bb8352ed6aa0774d49f45fcd417 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Mon, 15 Feb 2010 00:25:43 +0000 Subject: [PATCH] python/retrace: Reconstruct blend state from binary blobs. --- progs/gallium/python/retrace/interpreter.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/progs/gallium/python/retrace/interpreter.py b/progs/gallium/python/retrace/interpreter.py index a34122e0e0f..2db71a212f6 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): -- 2.30.2