From 6c8a22de24e1e374c4357ca653ac584c8a6adfac Mon Sep 17 00:00:00 2001 From: NeoBrainX Date: Fri, 10 Aug 2012 13:25:21 +0200 Subject: [PATCH] [bugfix] DX9::TextureCache: Use max_lod instead of min_lod where necessary. --- Source/Plugins/Plugin_VideoDX9/Src/Render.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()