Am Freitag, 3. August 2007 18:18 schrieb H. Verbeet:
> You are now executing that code multiple times.
+ This->baseTexture.states[WINED3DTEXSTA_MIPFILTER] = 
samplerStates[WINED3DSAMP_MIPFILTER];
+ This->baseTexture.states[WINED3DTEXSTA_MINFILTER] = 
samplerStates[WINED3DSAMP_MINFILTER];
+ This->baseTexture.states[WINED3DTEXSTA_MAXMIPLEVEL] = 
samplerStates[WINED3DSAMP_MAXMIPLEVEL];

That, combined with the check before the switch statement, should make sure 
that the whole block is executed only once. But I just noticed a double 
break; at the end.


Reply via email to