[4/5] WineD3D: WINED3DSAMP_MAXMIPLEVEL fixes
Stefan Dösinger
stefan at codeweavers.com
Fri Aug 3 14:53:30 CDT 2007
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.
More information about the wine-devel
mailing list