mesa: make _mesa_bind_texture_unit() static
authorBrian Paul <brianp@vmware.com>
Mon, 24 Aug 2015 13:50:51 +0000 (07:50 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 25 Aug 2015 00:23:19 +0000 (18:23 -0600)
It's only called from the file it's defined in.

Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au>
src/mesa/main/texobj.c
src/mesa/main/texobj.h

index 395e4d3359f7303eae2385cf40184c0a4b87079a..c5d83e145a698175560f0fa0250dc8c15ae53c0a 100644 (file)
@@ -1745,10 +1745,10 @@ _mesa_BindTexture( GLenum target, GLuint texName )
  * texture object will be decremented.  It'll be deleted if the
  * count hits zero.
  */
-void
-_mesa_bind_texture_unit(struct gl_context *ctx,
-                        GLuint unit,
-                        struct gl_texture_object *texObj)
+static void
+bind_texture_unit(struct gl_context *ctx,
+                  GLuint unit,
+                  struct gl_texture_object *texObj)
 {
    struct gl_texture_unit *texUnit;
 
@@ -1837,7 +1837,7 @@ _mesa_BindTextureUnit(GLuint unit, GLuint texture)
    }
    assert(valid_texture_object(texObj));
 
-   _mesa_bind_texture_unit(ctx, unit, texObj);
+   bind_texture_unit(ctx, unit, texObj);
 }
 
 
index ec5ccb2760166898b867beff316571b90db3782c..690878c85fcf58483e56f23086ec35276dfd3aec 100644 (file)
@@ -209,10 +209,6 @@ extern void
 _mesa_delete_nameless_texture(struct gl_context *ctx,
                               struct gl_texture_object *texObj);
 
-extern void
-_mesa_bind_texture_unit(struct gl_context *ctx,
-                        GLuint unit,
-                        struct gl_texture_object *texObj);
 
 /*@}*/