Mesa (master): glsl: Fix comment
Paul Berry
stereotype441 at kemper.freedesktop.org
Mon Oct 28 13:06:55 UTC 2013
Module: Mesa
Branch: master
Commit: e14abf566b7a0dfab64d2763d03d94524b8cfb3d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e14abf566b7a0dfab64d2763d03d94524b8cfb3d
Author: Timothy Arceri <t_arceri at yahoo.com.au>
Date: Tue Oct 22 22:38:12 2013 +1100
glsl: Fix comment
Signed-off-by: Timothy Arceri <t_arceri at yahoo.com.au>
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
---
src/glsl/ast_array_index.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/glsl/ast_array_index.cpp b/src/glsl/ast_array_index.cpp
index b457ec8..107c29e 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.
*/
More information about the mesa-commit
mailing list