python/retrace: Reconstruct blend state from binary blobs.

This commit is contained in:
José Fonseca
2010-02-15 00:25:43 +00:00
parent e918519fe9
commit 21fe86b036

View File

@@ -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):