From: Chia-I Wu Date: Sun, 21 Nov 2010 10:44:21 +0000 (+0800) Subject: st/vega: vegaLookupSingle should validate the state. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=daa265e53c4c84682514ed59dda88a8bdb86d0fe;p=mesa.git st/vega: vegaLookupSingle should validate the state. Fix "lookup" demo crash. --- diff --git a/src/gallium/state_trackers/vega/api_filters.c b/src/gallium/state_trackers/vega/api_filters.c index 4bd5d7e4bc2..fa1e00d1f88 100644 --- a/src/gallium/state_trackers/vega/api_filters.c +++ b/src/gallium/state_trackers/vega/api_filters.c @@ -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;