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

Always update texture for texrect.

Fixed  Star Wars Episode I - Racer (J) Displaying wrong text. #510
The game uses the same CI texture with different palettes.
Each palette produces different set of hieroglyphs from the texture.
Current palette depends on tile index, which is set by tile parameter of texrect.
This commit is contained in:
Sergey Lipskiy 2016-03-15 15:46:08 +06:00
parent f59518f024
commit 2a56af9da1

View File

@ -650,7 +650,10 @@ void OGLRender::_updateStates(RENDER_STATE _renderState) const
if (gSP.changed & CHANGED_LIGHT)
cmbInfo.updateLightParameters();
if ((gSP.changed & CHANGED_TEXTURE) || (gDP.changed & CHANGED_TILE) || (gDP.changed & CHANGED_TMEM) || cmbInfo.isChanged()) {
if ((gSP.changed & CHANGED_TEXTURE) ||
(gDP.changed & (CHANGED_TILE|CHANGED_TMEM)) ||
cmbInfo.isChanged() ||
_renderState == rsTexRect) {
//For some reason updating the texture cache on the first frame of LOZ:OOT causes a NULL Pointer exception...
ShaderCombiner * pCurrentCombiner = cmbInfo.getCurrent();
if (pCurrentCombiner != NULL) {