python/retrace: Reconstruct blend state from binary blobs.
This commit is contained in:
@@ -376,6 +376,9 @@ class Context(Object):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def create_blend_state(self, state):
|
def create_blend_state(self, state):
|
||||||
|
if isinstance(state, str):
|
||||||
|
state = gallium.Blend(state)
|
||||||
|
sys.stdout.write('\t%s\n' % state)
|
||||||
return state
|
return state
|
||||||
|
|
||||||
def bind_blend_state(self, state):
|
def bind_blend_state(self, state):
|
||||||
|
Reference in New Issue
Block a user