mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
st/vega: vegaLookupSingle should validate the state.
Fix "lookup" demo crash.
This commit is contained in:
parent
f90524a01b
commit
daa265e53c
1 changed files with 2 additions and 0 deletions
|
|
@ -796,6 +796,8 @@ void vegaLookupSingle(VGImage dst, VGImage src,
|
|||
return;
|
||||
}
|
||||
|
||||
vg_validate_state(ctx);
|
||||
|
||||
for (i = 0; i < 256; ++i) {
|
||||
VGuint rgba = lookupTable[i];
|
||||
VGubyte blue, green, red, alpha;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue