wined3d: Do not try to disable unsupported texture units.

This commit is contained in:
Stefan Dösinger 2007-11-28 12:13:08 +01:00 committed by Alexandre Julliard
parent 0353d031bc
commit 3f32847494
1 changed files with 1 additions and 1 deletions

View File

@ -2353,7 +2353,7 @@ static void sampler(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DCont
state_alpha(WINED3DRS_COLORKEYENABLE, stateblock, context);
}
}
} else if(sampler < GL_LIMITS(texture_stages)) {
} else if(mapped_stage < GL_LIMITS(textures)) {
if(sampler < stateblock->lowest_disabled_stage) {
/* TODO: What should I do with pixel shaders here ??? */
if(!isStateDirty(context, STATE_TEXTURESTAGE(sampler, WINED3DTSS_COLOROP))) {