[bugfix] DX9::TextureCache: Use max_lod instead of min_lod where necessary.

This commit is contained in:
NeoBrainX 2012-08-10 13:25:21 +02:00
parent 0706050b74
commit 6c8a22de24
1 changed files with 1 additions and 1 deletions

View File

@ -1336,7 +1336,7 @@ void Renderer::SetSamplerState(int stage, int texindex)
float lodbias = (tm0.lod_bias / 32.0f);
D3D::SetSamplerState(stage, D3DSAMP_MIPMAPLODBIAS, *(DWORD*)&lodbias);
D3D::SetSamplerState(stage, D3DSAMP_MAXMIPLEVEL, tm1.min_lod >> 4);
D3D::SetSamplerState(stage, D3DSAMP_MAXMIPLEVEL, tm1.max_lod >> 4);
}
void Renderer::SetInterlacingMode()