From daa265e53c4c84682514ed59dda88a8bdb86d0fe Mon Sep 17 00:00:00 2001 From: Chia-I Wu <olv@lunarg.com> Date: Sun, 21 Nov 2010 18:44:21 +0800 Subject: st/vega: vegaLookupSingle should validate the state. Fix "lookup" demo crash. --- src/gallium/state_trackers/vega/api_filters.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3