From: Samuel Iglesias Gonsalvez Date: Fri, 2 Oct 2015 06:43:51 +0000 (+0200) Subject: main: fix goto in program_resource_top_level_array_stride X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5be9bf2746370ecb180536eb2e5e48391b224dec;p=mesa.git main: fix goto in program_resource_top_level_array_stride Use found_top_level_array_stride instead of found_top_level_array_size. Signed-off-by: Samuel Iglesias Gonsalvez Reviewed-by: Timothy Arceri Reviewed-by: Tapani Pälli --- diff --git a/src/mesa/main/shader_query.cpp b/src/mesa/main/shader_query.cpp index 6d73e3bdcf2..caaa78caa53 100644 --- a/src/mesa/main/shader_query.cpp +++ b/src/mesa/main/shader_query.cpp @@ -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;