From 95d08db46fd54b37cb375980f97e1c0e11676419 Mon Sep 17 00:00:00 2001 From: NeoBrainX Date: Thu, 7 Feb 2013 21:44:51 +0100 Subject: [PATCH] Revert "[bugfix] DX9::TextureCache: Use max_lod instead of min_lod where necessary." This reverts commit 6c8a22de24e1e374c4357ca653ac584c8a6adfac. --- 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 0f0432e96b..0657309801 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 = (s32)tm0.lod_bias / 32.0f; D3D::SetSamplerState(stage, D3DSAMP_MIPMAPLODBIAS, *(DWORD*)&lodbias); - D3D::SetSamplerState(stage, D3DSAMP_MAXMIPLEVEL, tm1.max_lod >> 4); + D3D::SetSamplerState(stage, D3DSAMP_MAXMIPLEVEL, tm1.min_lod >> 4); } void Renderer::SetInterlacingMode()