wined3d: Remove test for value of unsigned variable being less than zero

Andrew Talbot andrew.talbot at talbotville.com
Fri May 9 16:32:32 CDT 2008


Changelog:
    wined3d: Remove test for value of unsigned variable being less than zero.

diff --git a/dlls/wined3d/basetexture.c b/dlls/wined3d/basetexture.c
index 1f14a20..ace6124 100644
--- a/dlls/wined3d/basetexture.c
+++ b/dlls/wined3d/basetexture.c
@@ -433,7 +433,7 @@ void WINAPI IWineD3DBaseTextureImpl_ApplyStateChanges(IWineD3DBaseTexture *iface
     if(samplerStates[WINED3DSAMP_MAGFILTER]     != This->baseTexture.states[WINED3DTEXSTA_MAGFILTER]) {
         GLint glValue;
         state = samplerStates[WINED3DSAMP_MAGFILTER];
-        if (state < WINED3DTEXF_NONE || state > WINED3DTEXF_ANISOTROPIC) {
+        if (state > WINED3DTEXF_ANISOTROPIC) {
             FIXME("Unrecognized or unsupported MAGFILTER* value %d\n", state);
         } else {
             glValue = (*This->baseTexture.magLookup)[state - WINED3DTEXF_NONE];



More information about the wine-patches mailing list