mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
LLETriangle : force flush triangles if tile is changed.
Fixed wrong textures is C&C intro.
This commit is contained in:
parent
e3f0354565
commit
5b765ba874
|
@ -1302,6 +1302,9 @@ void LLETriangle::draw(bool _shade, bool _texture, bool _zbuffer, s32 * _pData)
|
||||||
|
|
||||||
gSP.texture.level = _SHIFTR(_pData[0], 19, 3);
|
gSP.texture.level = _SHIFTR(_pData[0], 19, 3);
|
||||||
const u32 tile = _SHIFTR(_pData[0], 16, 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;
|
const int flip = (_pData[0] & 0x800000) >> 23;
|
||||||
start(tile);
|
start(tile);
|
||||||
|
|
||||||
|
|
|
@ -277,6 +277,7 @@ private:
|
||||||
gDPTile *m_textureTileOrg[2];
|
gDPTile *m_textureTileOrg[2];
|
||||||
f32 m_textureScaleOrg[2];
|
f32 m_textureScaleOrg[2];
|
||||||
bool m_flushed{ true };
|
bool m_flushed{ true };
|
||||||
|
u32 m_tile{ 0 };
|
||||||
};
|
};
|
||||||
|
|
||||||
void gDPSetOtherMode( u32 mode0, u32 mode1 );
|
void gDPSetOtherMode( u32 mode0, u32 mode1 );
|
||||||
|
|
Loading…
Reference in New Issue
Block a user