Lines Matching defs:mapped_stage

3156     DWORD mapped_stage = device->texUnitMap[stage];
3164 if (stage != mapped_stage) WARN("Using non 1:1 mapping: %d -> %d!\n", stage, mapped_stage);
3166 if (mapped_stage != WINED3D_UNMAPPED_STAGE)
3168 if (tex_used && mapped_stage >= gl_info->limits.textures)
3173 context_active_texture(context, gl_info, mapped_stage);
3179 if (mapped_stage != WINED3D_UNMAPPED_STAGE)
3218 DWORD mapped_stage = device->texUnitMap[stage];
3224 if (mapped_stage != WINED3D_UNMAPPED_STAGE)
3226 if (tex_used && mapped_stage >= gl_info->limits.textures)
3231 context_active_texture(context, gl_info, mapped_stage);
3306 mapped_stage, state->texture_states[stage][WINED3D_TSS_RESULT_ARG]);
3319 DWORD mapped_stage = device->texUnitMap[texUnit];
3330 if (mapped_stage == WINED3D_UNMAPPED_STAGE) return;
3331 if (mapped_stage >= gl_info->limits.textures) return;
3333 context_active_texture(context, gl_info, mapped_stage);
3377 unsigned int mapped_stage = 0;
3384 mapped_stage = device->texUnitMap[textureNo];
3385 if (mapped_stage == WINED3D_UNMAPPED_STAGE) continue;
3387 if (mapped_stage >= gl_info->limits.texture_coords)
3389 FIXME("Attempted to load unsupported texture coordinate %u\n", mapped_stage);
3398 textureNo, mapped_stage, coordIdx, e->data.buffer_object, e->data.addr);
3407 GL_EXTCALL(glClientActiveTextureARB(GL_TEXTURE0_ARB + mapped_stage));
3417 GL_EXTCALL(glMultiTexCoord4fARB(GL_TEXTURE0_ARB + mapped_stage, 0, 0, 0, 1));
3423 for (textureNo = mapped_stage + 1; textureNo < gl_info->limits.textures; ++textureNo)
3441 DWORD mapped_stage = device->texUnitMap[stage];
3443 if (mapped_stage == WINED3D_UNMAPPED_STAGE)
3449 if (mapped_stage >= gl_info->limits.fragment_samplers)
3451 WARN("stage %u not mapped to a valid texture unit (%u)\n", stage, mapped_stage);
3454 context_active_texture(context, gl_info, mapped_stage);
3656 DWORD mapped_stage = device->texUnitMap[sampler];
3668 if (mapped_stage == WINED3D_UNMAPPED_STAGE)
3674 if (mapped_stage >= gl_info->limits.combined_samplers)
3678 context_active_texture(context, gl_info, mapped_stage);