[Mesa-dev] [PATCH 2/6] main: fix goto in program_resource_top_level_array_stride

Samuel Iglesias Gonsalvez siglesias at igalia.com
Fri Oct 2 00:13:52 PDT 2015


Use found_top_level_array_stride instead of found_top_level_array_size.

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias at igalia.com>
---
 src/mesa/main/shader_query.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mesa/main/shader_query.cpp b/src/mesa/main/shader_query.cpp
index e6d93c3..be4c918 100644
--- a/src/mesa/main/shader_query.cpp
+++ b/src/mesa/main/shader_query.cpp
@@ -1006,7 +1006,7 @@ program_resource_top_level_array_stride(struct gl_shader_program *shProg,
                 */
                if (strcmp(name, var_name) == 0) {
                   array_stride = 0;
-                  goto found_top_level_array_size;
+                  goto found_top_level_array_stride;
                }
 
                if (interface->interface_packing != GLSL_INTERFACE_PACKING_STD430) {
@@ -1024,11 +1024,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;
-- 
2.1.4



More information about the mesa-dev mailing list