[4/10] DDraw: Handle mipmapped mag filters by ignoring the mipmap parameter

Stefan Dösinger stefan at codeweavers.com
Thu Feb 15 06:49:34 CST 2007


Battlezone 2 uses them and it gets mipmapping on windows
-------------- next part --------------
From 671532c9c58cdcb2bb56b929e8e044475aa3125d Mon Sep 17 00:00:00 2001
From: Stefan Doesinger <stefan at codeweavers.com>
Date: Fri, 9 Feb 2007 00:15:31 +0100
Subject: [PATCH] DDraw: Handle mipmapped mag filters by ignoring the mipmap parameter

---
 dlls/ddraw/device.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c
index ab77a26..c201df7 100644
--- a/dlls/ddraw/device.c
+++ b/dlls/ddraw/device.c
@@ -2300,9 +2300,11 @@ IDirect3DDeviceImpl_7_SetRenderState(IDirect3DDevice7 *iface,
             switch ((D3DTEXTUREFILTER) Value)
             {
                 case D3DFILTER_NEAREST:
+                case D3DFILTER_LINEARMIPNEAREST:
                     tex_mag = WINED3DTEXF_POINT;
                     break;
                 case D3DFILTER_LINEAR:
+                case D3DFILTER_LINEARMIPLINEAR:
                     tex_mag = WINED3DTEXF_LINEAR;
                     break;
                 default:
-- 
1.4.4.3



More information about the wine-patches mailing list