Commit 5f809e27 authored by Timothy Arceri's avatar Timothy Arceri

st/glsl: fix silly regression finding gs/tes variants

Fixes: d19fe5e6 ("st/glsl: support clamping color outputs in compat for gs/tes")
Reviewed-by: Ilia Mirkin's avatarIlia Mirkin <imirkin@alum.mit.edu>
parent d19fe5e6
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment