mesa: remove unused _mesa_create_nameless_texture()
authorBrian Paul <brianp@vmware.com>
Sat, 3 Oct 2015 14:05:33 +0000 (08:05 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 8 Oct 2015 19:53:33 +0000 (13:53 -0600)
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Tested-by: Mark Janes <mark.a.janes@intel.com>
src/mesa/main/texobj.c
src/mesa/main/texobj.h

index aa4b38cc210f6bbe2c6076da6fcc64467a8e5f9e..66eacf850f4b4731acb0a393c44e37c3cd18d80b 100644 (file)
@@ -1185,26 +1185,6 @@ invalidate_tex_image_error_check(struct gl_context *ctx, GLuint texture,
    return t;
 }
 
-/**
- * Wrapper for the driver function. Need this because _mesa_new_texture_object
- * permits a target of 0 and does not initialize targetIndex.
- */
-struct gl_texture_object *
-_mesa_create_nameless_texture(struct gl_context *ctx, GLenum target)
-{
-   struct gl_texture_object *texObj = NULL;
-   GLint targetIndex;
-
-   if (target == 0)
-      return texObj;
-
-   texObj = ctx->Driver.NewTextureObject(ctx, 0, target);
-   targetIndex = _mesa_tex_target_to_index(ctx, texObj->Target);
-   assert(targetIndex < NUM_TEXTURE_TARGETS);
-   texObj->TargetIndex = targetIndex;
-
-   return texObj;
-}
 
 /**
  * Helper function for glCreateTextures and glGenTextures. Need this because
index 690878c85fcf58483e56f23086ec35276dfd3aec..8421337de4d9115dc4a357d725baef6309ed4949 100644 (file)
@@ -202,9 +202,6 @@ _mesa_unlock_context_textures( struct gl_context *ctx );
 extern void
 _mesa_lock_context_textures( struct gl_context *ctx );
 
-extern struct gl_texture_object *
-_mesa_create_nameless_texture(struct gl_context *ctx, GLenum target);
-
 extern void
 _mesa_delete_nameless_texture(struct gl_context *ctx,
                               struct gl_texture_object *texObj);