mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-18 06:10:36 +01:00
python/retrace: Reconstruct blend state from binary blobs.
This commit is contained in:
parent
e918519fe9
commit
21fe86b036
1 changed files with 3 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue