diff options
author | Chia-I Wu <[email protected]> | 2010-11-21 18:44:21 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-11-21 19:26:33 +0800 |
commit | daa265e53c4c84682514ed59dda88a8bdb86d0fe (patch) | |
tree | 8eaef5df832525927cd153f844f67dd3517acb18 /src/gallium/state_trackers | |
parent | f90524a01bc159cde09a50ebdb8c5b5b7c4b9895 (diff) |
st/vega: vegaLookupSingle should validate the state.
Fix "lookup" demo crash.
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/vega/api_filters.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |