Lines Matching refs:unit
128 ctx->Texture.Unit[0].CurrentTex[TEXTURE_2D_INDEX]; \
186 ctx->Texture.Unit[0].CurrentTex[TEXTURE_2D_INDEX]; \
541 struct gl_texture_unit *unit = ctx->Texture.Unit+0; \
543 ctx->Texture.Unit[0].CurrentTex[TEXTURE_2D_INDEX]; \
556 info.envmode = unit->EnvMode; \
564 info.er = FloatToFixed(unit->EnvColor[RCOMP] * CHAN_MAXF); \
565 info.eg = FloatToFixed(unit->EnvColor[GCOMP] * CHAN_MAXF); \
566 info.eb = FloatToFixed(unit->EnvColor[BCOMP] * CHAN_MAXF); \
567 info.ea = FloatToFixed(unit->EnvColor[ACOMP] * CHAN_MAXF); \
810 const struct gl_texture_unit *unit = ctx->Texture.Unit+0; \
812 ctx->Texture.Unit[0].CurrentTex[TEXTURE_2D_INDEX]; \
823 info.envmode = unit->EnvMode; \
830 info.er = FloatToFixed(unit->EnvColor[RCOMP] * CHAN_MAXF); \
831 info.eg = FloatToFixed(unit->EnvColor[GCOMP] * CHAN_MAXF); \
832 info.eb = FloatToFixed(unit->EnvColor[BCOMP] * CHAN_MAXF); \
833 info.ea = FloatToFixed(unit->EnvColor[ACOMP] * CHAN_MAXF); \
1054 texObj2D = ctx->Texture.Unit[0].CurrentTex[TEXTURE_2D_INDEX];
1055 if (ctx->Texture.Unit[0].Sampler)
1056 samp = ctx->Texture.Unit[0].Sampler;
1068 envMode = ctx->Texture.Unit[0].EnvMode;
1075 && ctx->Texture.Unit[0]._ReallyEnabled == TEXTURE_2D_BIT
1086 && ctx->Texture.Unit[0].EnvMode != GL_COMBINE_EXT
1087 && ctx->Texture.Unit[0].EnvMode != GL_COMBINE4_NV) {