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 4bd5d7e4bc2e09cfccb448d73bc63983c17ab27a..fa1e00d1f88523bd6cdfed0b48a7747d65d44247 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;