wined3d: Don't update lowest_disabled_stage in wined3d_stateblock_apply().

oldstable
Henri Verbeet 2013-10-06 17:33:05 +02:00 committed by Alexandre Julliard
parent 3f6d45bf14
commit 242a79a9d7
1 changed files with 0 additions and 10 deletions

View File

@ -1133,16 +1133,6 @@ void CDECL wined3d_stateblock_apply(const struct wined3d_stateblock *stateblock)
wined3d_device_set_clip_plane(device, i, &stateblock->state.clip_planes[i]);
}
stateblock->device->state.lowest_disabled_stage = MAX_TEXTURES - 1;
for (i = 0; i < MAX_TEXTURES - 1; ++i)
{
if (stateblock->device->state.texture_states[i][WINED3D_TSS_COLOR_OP] == WINED3D_TOP_DISABLE)
{
stateblock->device->state.lowest_disabled_stage = i;
break;
}
}
TRACE("Applied stateblock %p.\n", stateblock);
}