summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2022-01-04 15:35:57 -0500
committerMarge Bot <emma+marge@anholt.net>2022-01-15 03:14:00 +0000
commitc828490b26c808ee6f4d0fe9c131228341a8cdbe (patch)
tree8a330d239133ee0d0d7faec0525f7aa271e5da16
parentc1fa6bbecf98c1514f5518381b7730653117fa63 (diff)
mesa: Remove unused _mesa_delete_nameless_texture
meta was the last user. Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14545>
-rw-r--r--src/mesa/main/texobj.c40
-rw-r--r--src/mesa/main/texobj.h4
2 files changed, 0 insertions, 44 deletions
diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c
index e39ba66c001..065da7e582d 100644
--- a/src/mesa/main/texobj.c
+++ b/src/mesa/main/texobj.c
@@ -1479,46 +1479,6 @@ delete_textures(struct gl_context *ctx, GLsizei n, const GLuint *textures)
}
}
-/**
- * This deletes a texObj without altering the hash table.
- */
-void
-_mesa_delete_nameless_texture(struct gl_context *ctx,
- struct gl_texture_object *texObj)
-{
- if (!texObj)
- return;
-
- FLUSH_VERTICES(ctx, _NEW_TEXTURE_OBJECT, GL_TEXTURE_BIT);
-
- _mesa_lock_texture(ctx, texObj);
- {
- /* Check if texture is bound to any framebuffer objects.
- * If so, unbind.
- * See section 4.4.2.3 of GL_EXT_framebuffer_object.
- */
- unbind_texobj_from_fbo(ctx, texObj);
-
- /* Check if this texture is currently bound to any texture units.
- * If so, unbind it.
- */
- unbind_texobj_from_texunits(ctx, texObj);
-
- /* Check if this texture is currently bound to any shader
- * image unit. If so, unbind it.
- * See section 3.9.X of GL_ARB_shader_image_load_store.
- */
- unbind_texobj_from_image_units(ctx, texObj);
- }
- _mesa_unlock_texture(ctx, texObj);
-
- /* Unreference the texobj. If refcount hits zero, the texture
- * will be deleted.
- */
- _mesa_reference_texobj(&texObj, NULL);
-}
-
-
void GLAPIENTRY
_mesa_DeleteTextures_no_error(GLsizei n, const GLuint *textures)
{
diff --git a/src/mesa/main/texobj.h b/src/mesa/main/texobj.h
index d38302918eb..ff3b8e93a00 100644
--- a/src/mesa/main/texobj.h
+++ b/src/mesa/main/texobj.h
@@ -205,10 +205,6 @@ _mesa_unlock_context_textures( struct gl_context *ctx );
extern void
_mesa_lock_context_textures( struct gl_context *ctx );
-extern void
-_mesa_delete_nameless_texture(struct gl_context *ctx,
- struct gl_texture_object *texObj);
-
extern struct gl_texture_object *
_mesa_lookup_or_create_texture(struct gl_context *ctx, GLenum target,
GLuint texName, bool no_error, bool is_ext_dsa,