glsl: Fix comment
authorTimothy Arceri <t_arceri@yahoo.com.au>
Tue, 22 Oct 2013 11:38:12 +0000 (22:38 +1100)
committerPaul Berry <stereotype441@gmail.com>
Mon, 28 Oct 2013 13:05:51 +0000 (06:05 -0700)
Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/glsl/ast_array_index.cpp

index b457ec8997edc6acb410c435a022452359b283b3..107c29e2e983993c7e6505a15c724a269cd17595 100644 (file)
@@ -143,7 +143,7 @@ _mesa_ast_array_index_to_hir(void *mem_ctx,
            bound = array->type->vector_elements;
         }
       } else {
-        /* glsl_type::array_size() returns 0 for non-array types.  This means
+        /* glsl_type::array_size() returns -1 for non-array types.  This means
          * that we don't need to verify that the type is an array before
          * doing the bounds checking.
          */