mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 15:30:35 +00:00
Fix incorrect texture in Dragon Ball Z Shin Budokai 2
This commit is contained in:
parent
fe04ff95b8
commit
a945cf0e13
@ -313,7 +313,7 @@ void LinkedShader::updateUniforms() {
|
||||
uvscaleoff[2] /= gstate_c.curTextureWidth;
|
||||
uvscaleoff[3] /= gstate_c.curTextureHeight;
|
||||
} else {
|
||||
static const float rescale[4] = {0, 2*127.5f/128.f, 2*32767.5f/32768.f, 2.0f};
|
||||
static const float rescale[4] = {2.0f, 2*127.5f/128.f, 2*32767.5f/32768.f, 2.0f};
|
||||
float factor = rescale[(gstate.vertType & GE_VTYPE_TC_MASK) >> GE_VTYPE_TC_SHIFT];
|
||||
uvscaleoff[0] *= factor;
|
||||
uvscaleoff[1] *= factor;
|
||||
|
Loading…
Reference in New Issue
Block a user