From 723f3656e54c5840956c56c047bc04fad070b405 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Thu, 16 Oct 2008 11:52:54 +0200 Subject: [PATCH] wined3d: Modifying GL_TEXTURE_MIN_FILTER modifies both the MINFILTER and MIPFILTER sampler states. --- dlls/wined3d/context.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index bf77f12c7a..d8ac3eaec8 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -83,9 +83,11 @@ static void context_apply_attachment_filter_states(IWineD3DDevice *iface, IWineD /* Update base texture states array */ if (SUCCEEDED(IWineD3DSurface_GetContainer(surface, &IID_IWineD3DBaseTexture, (void **)&texture_impl))) { - if (texture_impl->baseTexture.states[WINED3DTEXSTA_MINFILTER] != WINED3DTEXF_POINT) + if (texture_impl->baseTexture.states[WINED3DTEXSTA_MINFILTER] != WINED3DTEXF_POINT + || texture_impl->baseTexture.states[WINED3DTEXSTA_MIPFILTER] != WINED3DTEXF_NONE) { texture_impl->baseTexture.states[WINED3DTEXSTA_MINFILTER] = WINED3DTEXF_POINT; + texture_impl->baseTexture.states[WINED3DTEXSTA_MIPFILTER] = WINED3DTEXF_NONE; update_minfilter = TRUE; }