Skip to content

Commit

Permalink
Fixed parsing details of swizzles.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 3, 2009
1 parent 34b1863 commit d79ddb2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mojoshader_assembler.c
Expand Up @@ -1032,6 +1032,8 @@ static int parse_source_token_maybe_relative(Context *ctx, const int relok)

if (saw_xyzw && saw_rgba)
invalid_swizzle = 1;
else if (saw_rgba && !shader_is_pixel(ctx))
invalid_swizzle = 1;
} // else

if (invalid_swizzle)
Expand Down

0 comments on commit d79ddb2

Please sign in to comment.