st/glsl: fix silly regression finding gs/tes variants
Fixes: d19fe5e67a
("st/glsl: support clamping color outputs in compat for gs/tes")
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
d19fe5e67a
commit
5f809e2707
|
@ -1641,7 +1641,7 @@ st_get_basic_variant(struct st_context *st,
|
||||||
|
|
||||||
/* Search for existing variant */
|
/* Search for existing variant */
|
||||||
for (v = prog->variants; v; v = v->next) {
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue