wined3d: Don't apply more than num_contained_render_states in IWineD3DStateBlockImpl_Apply().

This commit is contained in:
Henri Verbeet 2009-10-15 10:36:41 +02:00 committed by Alexandre Julliard
parent 5a40c65cfe
commit ce10d5f186
1 changed files with 2 additions and 1 deletions

View File

@ -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]]);
}