D3D11: Disable mipmapping when no mipmap filter is selected.

This commit is contained in:
NeoBrainX 2012-03-24 06:04:00 +01:00
parent 33e20cf76d
commit 2afe605069
1 changed files with 3 additions and 2 deletions

View File

@ -1420,9 +1420,10 @@ void Renderer::SetSamplerState(int stage, int texindex)
gx_state.sampdc[stage].AddressU = d3dClamps[tm0.wrap_s];
gx_state.sampdc[stage].AddressV = d3dClamps[tm0.wrap_t];
gx_state.sampdc[stage].MipLODBias = (float)tm0.lod_bias/32.0f;
gx_state.sampdc[stage].MaxLOD = (float)tm1.max_lod/16.f;
// When mipfilter is set to "none", just disable mipmapping altogether
gx_state.sampdc[stage].MaxLOD = (mip == TEXF_NONE) ? 0.0f : (float)tm1.max_lod/16.f;
gx_state.sampdc[stage].MinLOD = (float)tm1.min_lod/16.f;
gx_state.sampdc[stage].MipLODBias = (float)tm0.lod_bias/32.0f;
}
void Renderer::SetInterlacingMode()