Lines Matching defs:texstate
55 #include "texstate.h"
512 struct texture_state *texstate = CALLOC_STRUCT(texture_state);
515 if (!texstate) {
520 if (!save_attrib_data(&head, GL_TEXTURE_BIT, texstate)) {
521 free(texstate);
529 memcpy(&texstate->Texture, &ctx->Texture, sizeof(ctx->Texture));
536 _mesa_reference_texobj(&texstate->SavedTexRef[u][tex],
544 _mesa_copy_texture_object(&texstate->SavedObj[u][tex],
549 _mesa_reference_shared_state(ctx, &texstate->SharedRef, ctx->Shared);
798 pop_texture_group(struct gl_context *ctx, struct texture_state *texstate)
806 &texstate->Texture.FixedFuncUnit[u];
852 texstate->Texture.Unit[u].LodBias);
882 obj = &texstate->SavedObj[u][tgt];
946 _mesa_reference_texobj(&texstate->SavedTexRef[u][tgt], NULL);
950 _mesa_ActiveTexture(GL_TEXTURE0_ARB + texstate->Texture.CurrentUnit);
952 _mesa_reference_shared_state(ctx, &texstate->SharedRef, NULL);
1471 struct texture_state *texstate
1473 pop_texture_group(ctx, texstate);
1870 struct texture_state *texstate = (struct texture_state*)attr->data;
1875 _mesa_reference_texobj(&texstate->SavedTexRef[u][tgt], NULL);
1878 _mesa_reference_shared_state(ctx, &texstate->SharedRef, NULL);