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:
Timothy Arceri 2019-06-26 23:02:12 +10:00
parent d19fe5e67a
commit 5f809e2707
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}