wined3d: Don't apply more than num_contained_render_states in IWineD3DStateBlockImpl_Apply().
This commit is contained in:
parent
5a40c65cfe
commit
ce10d5f186
|
@ -940,7 +940,8 @@ should really perform a delta so that only the changes get updated*/
|
|||
}
|
||||
|
||||
/* Render */
|
||||
for (i = 0; i <= This->num_contained_render_states; i++) {
|
||||
for (i = 0; i < This->num_contained_render_states; i++)
|
||||
{
|
||||
IWineD3DDevice_SetRenderState(pDevice, This->contained_render_states[i],
|
||||
This->renderState[This->contained_render_states[i]]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue