Skip to content

Commit

Permalink
fixes bottom pixel of sprite textures never rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
harbdog committed Feb 18, 2023
1 parent 9d862c7 commit a2c8aae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion camera.go
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ func (c *Camera) castSprite(spriteOrdIndex int) {
//--set current texture slice--//
spriteLvl.Cts[stripe] = spriteSlices[texX]
spriteLvl.Cts[stripe].Min.Y = spriteTexRect.Min.Y + texStartY
spriteLvl.Cts[stripe].Max.Y = spriteTexRect.Min.Y + texEndY
spriteLvl.Cts[stripe].Max.Y = spriteTexRect.Min.Y + texEndY + 1

spriteLvl.CurrTex[stripe] = spriteTex

Expand Down

0 comments on commit a2c8aae

Please sign in to comment.