st/glsl: fix silly regression finding gs/tes variants
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 26 Jun 2019 13:02:12 +0000 (23:02 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 26 Jun 2019 13:13:02 +0000 (23:13 +1000)
Fixes: d19fe5e67a39 ("st/glsl: support clamping color outputs in compat for gs/tes")
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/state_tracker/st_program.c

index 3c99721a8a70da41418df834f8a3985a24dacab1..faada1621ca91dd9a91ce1ceda622f001c75f9c4 100644 (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;
       }
    }