Lines Matching defs:texstate
57 #include "texstate.h"
421 struct texture_state *texstate = CALLOC_STRUCT(texture_state);
424 if (!texstate) {
432 memcpy(&texstate->Texture, &ctx->Texture, sizeof(ctx->Texture));
439 _mesa_reference_texobj(&texstate->SavedTexRef[u][tex],
447 _mesa_copy_texture_object(&texstate->SavedObj[u][tex],
452 _mesa_reference_shared_state(ctx, &texstate->SharedRef, ctx->Shared);
456 save_attrib_data(&head, GL_TEXTURE_BIT, texstate);
674 pop_texture_group(struct gl_context *ctx, struct texture_state *texstate)
681 const struct gl_texture_unit *unit = &texstate->Texture.Unit[u];
762 obj = &texstate->SavedObj[u][tgt];
820 _mesa_reference_texobj(&texstate->SavedTexRef[u][tgt], NULL);
824 _mesa_ActiveTextureARB(GL_TEXTURE0_ARB + texstate->Texture.CurrentUnit);
826 _mesa_reference_shared_state(ctx, &texstate->SharedRef, NULL);
1274 struct texture_state *texstate
1276 pop_texture_group(ctx, texstate);
1632 struct texture_state *texstate = (struct texture_state*)attr->data;
1637 _mesa_reference_texobj(&texstate->SavedTexRef[u][tgt], NULL);
1640 _mesa_reference_shared_state(ctx, &texstate->SharedRef, NULL);