Commit aeb3ba28 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

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

parent 46fcc228
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment