Re: [4/5] WineD3D: WINED3DSAMP_MAXMIPLEVEL fixes
August 2007
7:53 p.m.
New subject: [4/5] WineD3D: WINED3DSAMP_MAXMIPLEVEL fixes
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.
6810
Age (days ago)
6810
Last active (days ago)
1 comments
2 participants
participants (2)
-
H. Verbeet -
Stefan Dösinger