main: fix goto in program_resource_top_level_array_stride
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Fri, 2 Oct 2015 06:43:51 +0000 (08:43 +0200)
committerSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Fri, 9 Oct 2015 06:12:10 +0000 (08:12 +0200)
Use found_top_level_array_stride instead of found_top_level_array_size.

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/main/shader_query.cpp

index 6d73e3bdcf260c538ad8155ef1ca088c6254ab19..caaa78caa5336f177687b5c0a613594c90bcbf49 100644 (file)
@@ -1010,11 +1010,11 @@ program_resource_top_level_array_stride(struct gl_shader_program *shProg,
             } else {
                array_stride = 0;
             }
-            goto found_top_level_array_size;
+            goto found_top_level_array_stride;
          }
       }
    }
-found_top_level_array_size:
+found_top_level_array_stride:
    free(interface_name);
    free(var_name);
    return array_stride;