mesa: remove unused _mesa_delete_nameless_texture()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 21 Jun 2017 07:41:50 +0000 (09:41 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 22 Jun 2017 08:41:13 +0000 (10:41 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/main/texobj.c
src/mesa/main/texobj.h

index ed1eaf9b77b21c28381470e8f6b460fd9b4ee1bd..a5988159a57bc9e8f5cc2cc08e801fa5580081fc 100644 (file)
@@ -1495,47 +1495,6 @@ _mesa_DeleteTextures( 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, 0);
-
-   _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);
-
-   ctx->NewState |= _NEW_TEXTURE_OBJECT;
-
-   /* Unreference the texobj.  If refcount hits zero, the texture
-    * will be deleted.
-    */
-   _mesa_reference_texobj(&texObj, NULL);
-}
-
 
 /**
  * Convert a GL texture target enum such as GL_TEXTURE_2D or GL_TEXTURE_3D
index a9db1675e013068617d62c722cfa5fb8c8b5b45c..1c68bd8ec7d7ba5075c3dddd276f9ec8cd4bc176 100644 (file)
@@ -170,11 +170,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);
-
-
 /*@}*/
 
 /**