Lines Matching refs:texObj
195 * \param texObj the texture object to delete.
199 struct gl_texture_object *texObj)
206 texObj->Target = 0x99;
211 if (texObj->Image[face][i]) {
212 ctx->Driver.DeleteTextureImage(ctx, texObj->Image[face][i]);
217 _mesa_reference_buffer_object(ctx, &texObj->BufferObject, NULL);
220 _glthread_DESTROY_MUTEX(texObj->Mutex);
223 free(texObj);
284 struct gl_texture_object *texObj)
288 if (texObj->Target == 0)
293 struct gl_texture_image *texImage = texObj->Image[i][j];
661 _mesa_cube_complete(const struct gl_texture_object *texObj)
663 const GLint baseLevel = texObj->BaseLevel;
667 if (texObj->Target != GL_TEXTURE_CUBE_MAP)
674 img0 = texObj->Image[0][baseLevel];
682 img = texObj->Image[face][baseLevel];
699 * \param texObj texture object.
703 _mesa_dirty_texobj(struct gl_context *ctx, struct gl_texture_object *texObj,
706 texObj->_BaseComplete = GL_FALSE;
707 texObj->_MipmapComplete = GL_FALSE;
726 struct gl_texture_object *texObj;
781 texObj = ctx->Driver.NewTextureObject(ctx, 0, target);
782 if (!texObj)
785 assert(texObj->RefCount == 1);
786 texObj->Sampler.MinFilter = GL_NEAREST;
787 texObj->Sampler.MagFilter = GL_NEAREST;
803 texImage = _mesa_get_tex_image(ctx, texObj, faceTarget, 0);
817 _mesa_test_texobj_completeness(ctx, texObj);
818 assert(texObj->_BaseComplete);
819 assert(texObj->_MipmapComplete);
821 ctx->Shared->FallbackTex[tex] = texObj;
831 texture_size(const struct gl_texture_object *texObj)
833 const GLuint numFaces = _mesa_num_tex_faces(texObj->Target);
838 const struct gl_texture_image *img = texObj->Image[face][level];
857 const struct gl_texture_object *texObj =
861 *total = *total + texture_size(texObj);
982 struct gl_texture_object *texObj;
985 texObj = ctx->Driver.NewTextureObject(ctx, name, target);
986 if (!texObj) {
993 _mesa_HashInsert(ctx->Shared->TexObjects, texObj->Name, texObj);
1008 struct gl_texture_object *texObj)
1019 fb->Attachment[j].Texture == texObj) {
1036 struct gl_texture_object *texObj)
1043 if (texObj == unit->CurrentTex[tex]) {