Lines Matching defs:mapped_stage

3023     DWORD mapped_stage = stateblock->device->texUnitMap[stage];
3031 if (stage != mapped_stage) WARN("Using non 1:1 mapping: %d -> %d!\n", stage, mapped_stage);
3033 if (mapped_stage != WINED3D_UNMAPPED_STAGE)
3035 if (tex_used && mapped_stage >= gl_info->limits.textures)
3040 GL_EXTCALL(glActiveTextureARB(GL_TEXTURE0_ARB + mapped_stage));
3046 if (mapped_stage != WINED3D_UNMAPPED_STAGE)
3086 DWORD mapped_stage = stateblock->device->texUnitMap[stage];
3092 if (mapped_stage != WINED3D_UNMAPPED_STAGE)
3094 if (tex_used && mapped_stage >= gl_info->limits.textures)
3099 GL_EXTCALL(glActiveTextureARB(GL_TEXTURE0_ARB + mapped_stage));
3176 mapped_stage, stateblock->textureState[stage][WINED3DTSS_RESULTARG]);
3187 DWORD mapped_stage = stateblock->device->texUnitMap[texUnit];
3198 if (mapped_stage == WINED3D_UNMAPPED_STAGE) return;
3199 if (mapped_stage >= context->gl_info->limits.textures) return;
3201 GL_EXTCALL(glActiveTextureARB(GL_TEXTURE0_ARB + mapped_stage));
3244 unsigned int mapped_stage = 0;
3251 mapped_stage = stateblock->device->texUnitMap[textureNo];
3252 if (mapped_stage == WINED3D_UNMAPPED_STAGE) continue;
3259 textureNo, mapped_stage, coordIdx, e->data);
3268 GL_EXTCALL(glClientActiveTextureARB(GL_TEXTURE0_ARB + mapped_stage));
3276 GL_EXTCALL(glMultiTexCoord4fARB(GL_TEXTURE0_ARB + mapped_stage, 0, 0, 0, 1));
3282 for (textureNo = mapped_stage + 1; textureNo < gl_info->limits.textures; ++textureNo)
3294 DWORD mapped_stage = stateblock->device->texUnitMap[stage];
3301 if (mapped_stage == WINED3D_UNMAPPED_STAGE)
3307 if (mapped_stage >= gl_info->limits.fragment_samplers)
3309 WARN("stage %u not mapped to a valid texture unit (%u)\n", stage, mapped_stage);
3312 GL_EXTCALL(glActiveTextureARB(GL_TEXTURE0_ARB + mapped_stage));
3530 DWORD mapped_stage = stateblock->device->texUnitMap[sampler];
3542 if (mapped_stage == WINED3D_UNMAPPED_STAGE)
3548 if (mapped_stage >= gl_info->limits.combined_samplers)
3552 GL_EXTCALL(glActiveTextureARB(GL_TEXTURE0_ARB + mapped_stage));
3589 else if (mapped_stage < gl_info->limits.textures)