st/vega: vegaLookupSingle should validate the state.

Fix "lookup" demo crash.
This commit is contained in:
Chia-I Wu 2010-11-21 18:44:21 +08:00
parent f90524a01b
commit daa265e53c

View file

@ -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;