summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Arceri <t_arceri@yahoo.com.au>2013-10-22 22:38:12 +1100
committerPaul Berry <stereotype441@gmail.com>2013-10-28 06:05:51 -0700
commite14abf566b7a0dfab64d2763d03d94524b8cfb3d (patch)
treeaf69f225c3c28d23b1d451297ba2e87446f65614
parent925ffa8c4a5760d0f79de6bf1fab52c2d6e83b17 (diff)
glsl: Fix comment
Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au> Reviewed-by: Paul Berry <stereotype441@gmail.com>
-rw-r--r--src/glsl/ast_array_index.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ast_array_index.cpp b/src/glsl/ast_array_index.cpp
index b457ec8997e..107c29e2e98 100644
--- a/src/glsl/ast_array_index.cpp
+++ b/src/glsl/ast_array_index.cpp
@@ -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.
*/