mojoshader_compiler.c
changeset 1010 bbfed6061a2e
parent 1009 ba0ed22a4bac
child 1011 0758e03a79d9
--- a/mojoshader_compiler.c	Tue Mar 15 01:39:41 2011 -0700
+++ b/mojoshader_compiler.c	Tue Mar 15 01:40:04 2011 -0700
@@ -2609,9 +2609,15 @@
 
             datatype = reduce_datatype(ctx, datatype);
             if (datatype->type == MOJOSHADER_AST_DATATYPE_VECTOR)
+            {
+                // !!! FIXME: if constant int, fail if not 0 >= value <= vecsize.
                 ast->binary.datatype = datatype->vector.base;
+            } // if
             else if (datatype->type == MOJOSHADER_AST_DATATYPE_MATRIX)
+            {
+                // !!! FIXME: if constant int, fail if not 0 >= value <= rowsize (colsize?).
                 ast->binary.datatype = vectype_from_base(ctx, datatype->matrix.base, datatype->matrix.columns);  // !!! FIXME: rows?
+            }
             else
             {
                 require_array_datatype(ctx, datatype);