1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Correct gDPTextureRectangle:

use ceil(lry) instead of max(lry, uly + 1.0f)
It fixes the issue with zero height rectangles,
which often contain a garbage, see #2157
This commit is contained in:
Sergey Lipskiy 2020-09-01 17:00:15 +07:00
parent 15cbdc6593
commit 1e915af002

View File

@ -851,7 +851,7 @@ void gDPTextureRectangle(f32 ulx, f32 uly, f32 lrx, f32 lry, s32 tile, s16 s, s1
lrx += 1.0f;
lry += 1.0f;
}
lry = max(lry, uly + 1.0f);
lry = ceil(lry);
gDPTile *textureTileOrg[2];
textureTileOrg[0] = gSP.textureTile[0];