Skip to content

Commit

Permalink
Added a FIXME.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 15, 2011
1 parent 0547b4d commit 4550af5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mojoshader_compiler.c
Expand Up @@ -2609,9 +2609,15 @@ static const MOJOSHADER_astDataType *type_check_ast(Context *ctx, void *_ast)

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);
Expand Down

0 comments on commit 4550af5

Please sign in to comment.