Module: wine Branch: master Commit: aeb3ba28693850f2f8cb21204adb942cf8d882be URL: http://source.winehq.org/git/wine.git/?a=commit;h=aeb3ba28693850f2f8cb21204a...
Author: Andrew Talbot andrew.talbot@talbotville.com Date: Fri May 9 22:32:32 2008 +0100
wined3d: Remove test for value of unsigned variable being less than zero.
---
dlls/wined3d/basetexture.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
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];