Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Matrix members inside struct parameters are also valid
  • Loading branch information
flibitijibibo committed May 27, 2019
1 parent 194ebea commit 35aa7e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojoshader_effects.c
Expand Up @@ -373,7 +373,7 @@ static void readvalue(const uint8 *base,

// !!! FIXME: Nested structs! -flibit
assert(mem->info.parameter_class >= MOJOSHADER_SYMCLASS_SCALAR
&& mem->info.parameter_class <= MOJOSHADER_SYMCLASS_VECTOR);
&& mem->info.parameter_class <= MOJOSHADER_SYMCLASS_MATRIX_COLUMNS);
assert(mem->info.parameter_type >= MOJOSHADER_SYMTYPE_BOOL
&& mem->info.parameter_type <= MOJOSHADER_SYMTYPE_FLOAT);
mem->info.member_count = 0;
Expand Down

0 comments on commit 35aa7e3

Please sign in to comment.