• Home
  • Raw
  • Download

Lines Matching refs:texstate

497       struct texture_state *texstate = CALLOC_STRUCT(texture_state);  in _mesa_PushAttrib()  local
500 if (!texstate) { in _mesa_PushAttrib()
505 if (!save_attrib_data(&head, GL_TEXTURE_BIT, texstate)) { in _mesa_PushAttrib()
506 free(texstate); in _mesa_PushAttrib()
514 memcpy(&texstate->Texture, &ctx->Texture, sizeof(ctx->Texture)); in _mesa_PushAttrib()
521 _mesa_reference_texobj(&texstate->SavedTexRef[u][tex], in _mesa_PushAttrib()
529 _mesa_copy_texture_object(&texstate->SavedObj[u][tex], in _mesa_PushAttrib()
534 _mesa_reference_shared_state(ctx, &texstate->SharedRef, ctx->Shared); in _mesa_PushAttrib()
754 pop_texture_group(struct gl_context *ctx, struct texture_state *texstate) in pop_texture_group() argument
761 const struct gl_texture_unit *unit = &texstate->Texture.Unit[u]; in pop_texture_group()
835 obj = &texstate->SavedObj[u][tgt]; in pop_texture_group()
899 _mesa_reference_texobj(&texstate->SavedTexRef[u][tgt], NULL); in pop_texture_group()
903 _mesa_ActiveTexture(GL_TEXTURE0_ARB + texstate->Texture.CurrentUnit); in pop_texture_group()
905 _mesa_reference_shared_state(ctx, &texstate->SharedRef, NULL); in pop_texture_group()
1404 struct texture_state *texstate in _mesa_PopAttrib() local
1406 pop_texture_group(ctx, texstate); in _mesa_PopAttrib()
1799 struct texture_state *texstate = (struct texture_state*)attr->data; in _mesa_free_attrib_data() local
1804 _mesa_reference_texobj(&texstate->SavedTexRef[u][tgt], NULL); in _mesa_free_attrib_data()
1807 _mesa_reference_shared_state(ctx, &texstate->SharedRef, NULL); in _mesa_free_attrib_data()