mesa: rename _mesa_free_errors_data
[mesa.git] / src / mesa / main / texobj.c
index 8bd9cee46154de1f7da67bd3cfecf59a6bc8c7b4..3e058975db86c50a044248502559f344d17bda5a 100644 (file)
@@ -1514,6 +1514,10 @@ delete_textures(struct gl_context *ctx, GLsizei n, const GLuint *textures)
              */
             _mesa_HashRemove(ctx->Shared->TexObjects, delObj->Name);
 
+            if (ctx->Driver.TextureRemovedFromShared) {
+               ctx->Driver.TextureRemovedFromShared(ctx, delObj);
+            }
+
             /* Unreference the texobj.  If refcount hits zero, the texture
              * will be deleted.
              */