st/vega: vegaLookupSingle should validate the state.
authorChia-I Wu <olv@lunarg.com>
Sun, 21 Nov 2010 10:44:21 +0000 (18:44 +0800)
committerChia-I Wu <olv@lunarg.com>
Sun, 21 Nov 2010 11:26:33 +0000 (19:26 +0800)
Fix "lookup" demo crash.

src/gallium/state_trackers/vega/api_filters.c

index 4bd5d7e..fa1e00d 100644 (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;