st/vega: vegaLookupSingle should validate the state.
Fix "lookup" demo crash.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user