summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2019-06-26 23:02:12 +1000
committerTimothy Arceri <[email protected]>2019-06-26 23:13:02 +1000
commit5f809e270767851dc70cbfd63cb158e0ee46f29e (patch)
tree0b74d716f9373180b3b33e77a4c4b0ca1a31d198 /src
parentd19fe5e67a3945582448748c72b10fd5029d2ed5 (diff)
st/glsl: fix silly regression finding gs/tes variants
Fixes: d19fe5e67a39 ("st/glsl: support clamping color outputs in compat for gs/tes") Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_program.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c
index 3c99721a8a7..faada1621ca 100644
--- a/src/mesa/state_tracker/st_program.c
+++ b/src/mesa/state_tracker/st_program.c
@@ -1641,7 +1641,7 @@ st_get_basic_variant(struct st_context *st,
/* Search for existing variant */
for (v = prog->variants; v; v = v->next) {
- if (memcmp(&v->key, &key, sizeof(key)) == 0) {
+ if (memcmp(&v->key, key, sizeof(*key)) == 0) {
break;
}
}