Home | History | Annotate | Download | only in common

Lines Matching refs:Unit

636       save->EnvMode = ctx->Texture.Unit[0].EnvMode;
640 save->TexEnabled[u] = ctx->Texture.Unit[u].Enabled;
641 save->TexGenEnabled[u] = ctx->Texture.Unit[u].TexGenEnabled;
642 if (ctx->Texture.Unit[u].Enabled ||
643 ctx->Texture.Unit[u].TexGenEnabled) {
660 /* save current texture objects for unit[0] only */
663 ctx->Texture.Unit[0].CurrentTex[tgt]);
666 /* set defaults for unit[0] */
1052 /* restore texenv for unit[0] */
1055 /* restore texture objects for unit[0] only */
1057 if (ctx->Texture.Unit[0].CurrentTex[tgt] != save->CurrentTexture[tgt]) {
1059 _mesa_reference_texobj(&ctx->Texture.Unit[0].CurrentTex[tgt],
1067 if (ctx->Texture.Unit[u].Enabled != save->TexEnabled[u]) {
1069 ctx->Texture.Unit[u].Enabled = save->TexEnabled[u];
1072 if (ctx->Texture.Unit[u].TexGenEnabled != save->TexGenEnabled[u]) {
1074 ctx->Texture.Unit[u].TexGenEnabled = save->TexGenEnabled[u];
1078 /* restore current unit state */
3060 ctx->Texture.Unit[ctx->Texture.CurrentUnit].Sampler);
3230 /* disable texture unit */
3403 if (!ctx->Texture.Unit[i]._Current) {
3412 texObj = ctx->Texture.Unit[i]._Current;