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

Texrect hack for 512 width.

Fixed motion blur in Rally Challenge 2000.

Need to find a proper solution.
This commit is contained in:
Sergey Lipskiy 2013-06-14 01:55:51 +07:00
parent ad9e3d3bee
commit 03dfe205f8

View File

@ -856,6 +856,10 @@ void gDPTextureRectangle( f32 ulx, f32 uly, f32 lrx, f32 lry, s32 tile, f32 s, f
gSP.textureTile[0] = &gDP.tiles[tile];
gSP.textureTile[1] = &gDP.tiles[tile < 7 ? tile + 1 : tile];
// HACK ALERT!
if ((int(s) == 512) && (gDP.colorImage.width < 512))
s = 0.0f;
f32 lrs = s + (lrx - ulx - 1) * dsdx;
f32 lrt = t + (lry - uly - 1) * dtdy;