[Mesa-dev] [PATCH v3 1/6] main: fix goto in program_resource_top_level_array_stride
Timothy Arceri
t_arceri at yahoo.com.au
Wed Oct 7 15:27:04 PDT 2015
On Wed, 2015-10-07 at 09:20 +0200, Samuel Iglesias Gonsalvez wrote:
> Use found_top_level_array_stride instead of
> found_top_level_array_size.
>
> Signed-off-by: Samuel Iglesias Gonsalvez <siglesias at igalia.com>
Reviewed-by: Timothy Arceri <t_arceri at yahoo.com.au>
> ---
> src/mesa/main/shader_query.cpp | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/mesa/main/shader_query.cpp
> b/src/mesa/main/shader_query.cpp
> index 6d73e3b..caaa78c 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;
More information about the mesa-dev
mailing list