Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
spirv: Fix asserts for pixel shader POSITION/PSIZE lengths
  • Loading branch information
flibitijibibo committed Jun 25, 2020
1 parent dd55257 commit 6c1ec6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions profiles/mojoshader_profile_spirv.c
Expand Up @@ -1710,12 +1710,12 @@ static void spv_link_ps_attributes(Context *ctx, uint32 id, RegisterType regtype
} // case
case MOJOSHADER_USAGE_POSITION:
{
assert(index < SPV_LENGTH_POSITION);
assert(index <= SPV_LENGTH_POSITION);
spv_output_location(ctx, id, SPV_OFFSET_POSITION + (index - 1));
} // case
case MOJOSHADER_USAGE_POINTSIZE:
{
assert(index < SPV_LENGTH_PSIZE);
assert(index <= SPV_LENGTH_PSIZE);
spv_output_location(ctx, id, SPV_OFFSET_PSIZE + (index - 1));
} // case
default:
Expand Down

0 comments on commit 6c1ec6a

Please sign in to comment.