[PATCH 1/5] wined3d: Set the WINED3DTEXF_NONE entry in the minification lookup table to GL_NEAREST.

Henri Verbeet hverbeet at codeweavers.com
Thu Aug 6 01:12:18 CDT 2009


Although WINED3DTEXF_NONE is not a valid minification filter, having it in the
tables simplifies the lookup. GL_NEAREST is more appropriate than GL_LINEAR
though.
---
 dlls/wined3d/directx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 7be5f44..de37df1 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -171,7 +171,7 @@ DWORD *stateLookup[MAX_LOOKUPS];
 const struct min_lookup minMipLookup[] =
 {
     /* NONE         POINT                       LINEAR */
-    {{GL_LINEAR,    GL_LINEAR,                  GL_LINEAR}},                /* NONE */
+    {{GL_NEAREST,   GL_NEAREST,                 GL_NEAREST}},               /* NONE */
     {{GL_NEAREST,   GL_NEAREST_MIPMAP_NEAREST,  GL_NEAREST_MIPMAP_LINEAR}}, /* POINT*/
     {{GL_LINEAR,    GL_LINEAR_MIPMAP_NEAREST,   GL_LINEAR_MIPMAP_LINEAR}},  /* LINEAR */
 };
-- 
1.6.0.6




More information about the wine-patches mailing list