projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f90524a
)
st/vega: vegaLookupSingle should validate the state.
author
Chia-I Wu
<olv@lunarg.com>
Sun, 21 Nov 2010 10:44:21 +0000
(18:44 +0800)
committer
Chia-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
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/vega/api_filters.c
b/src/gallium/state_trackers/vega/api_filters.c
index 4bd5d7e4bc2e09cfccb448d73bc63983c17ab27a..fa1e00d1f88523bd6cdfed0b48a7747d65d44247 100644
(file)
--- 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;