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

LLETriangle : force flush triangles if tile is changed.

Fixed wrong textures is C&C intro.
This commit is contained in:
Sergey Lipskiy 2020-03-04 22:37:10 +07:00
parent e3f0354565
commit 5b765ba874
2 changed files with 4 additions and 0 deletions

View File

@ -1302,6 +1302,9 @@ void LLETriangle::draw(bool _shade, bool _texture, bool _zbuffer, s32 * _pData)
gSP.texture.level = _SHIFTR(_pData[0], 19, 3);
const u32 tile = _SHIFTR(_pData[0], 16, 3);
if (tile != m_tile)
flush(0);
m_tile = tile;
const int flip = (_pData[0] & 0x800000) >> 23;
start(tile);

View File

@ -277,6 +277,7 @@ private:
gDPTile *m_textureTileOrg[2];
f32 m_textureScaleOrg[2];
bool m_flushed{ true };
u32 m_tile{ 0 };
};
void gDPSetOtherMode( u32 mode0, u32 mode1 );