diff options
| author | NeoBrainX <NeoBrainX@gmail.com> | 2012-08-10 13:25:21 +0200 |
|---|---|---|
| committer | NeoBrainX <NeoBrainX@gmail.com> | 2012-10-20 21:07:03 +0200 |
| commit | 6c8a22de24e1e374c4357ca653ac584c8a6adfac (patch) | |
| tree | 2cc460cf42c1379cf58ceb48b7c0790e9550c4f0 /Source | |
| parent | 0706050b746e841227f0dcfd1572b62ddf184728 (diff) | |
[bugfix] DX9::TextureCache: Use max_lod instead of min_lod where necessary.
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Plugins/Plugin_VideoDX9/Src/Render.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Plugins/Plugin_VideoDX9/Src/Render.cpp b/Source/Plugins/Plugin_VideoDX9/Src/Render.cpp index 1bca963bd6..9299bf0b8f 100644 --- a/Source/Plugins/Plugin_VideoDX9/Src/Render.cpp +++ b/Source/Plugins/Plugin_VideoDX9/Src/Render.cpp @@ -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() |
