mesa: make _mesa_set_tex_image() static since it's not called anywhere else
authorBrian Paul <brianp@vmware.com>
Sun, 18 Dec 2011 17:02:42 +0000 (10:02 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 19 Dec 2011 00:56:08 +0000 (17:56 -0700)
src/mesa/main/teximage.c
src/mesa/main/teximage.h

index eccc0fd39b98ff8ff9cff4fd188513729b2390c7..841240c4c219a56a34b9f4532d427f7b693faf5b 100644 (file)
@@ -541,18 +541,18 @@ _mesa_tex_target_to_face(GLenum target)
 
 
 /**
- * Store a gl_texture_image pointer in a gl_texture_object structure
- * according to the target and level parameters.
+ * Install gl_texture_image in a gl_texture_object according to the target
+ * and level parameters.
  * 
  * \param tObj texture object.
  * \param target texture target.
  * \param level image level.
  * \param texImage texture image.
  */
-void
-_mesa_set_tex_image(struct gl_texture_object *tObj,
-                    GLenum target, GLint level,
-                    struct gl_texture_image *texImage)
+static void
+set_tex_image(struct gl_texture_object *tObj,
+              GLenum target, GLint level,
+              struct gl_texture_image *texImage)
 {
    const GLuint face = _mesa_tex_target_to_face(target);
 
@@ -804,7 +804,7 @@ _mesa_get_tex_image(struct gl_context *ctx, struct gl_texture_object *texObj,
          return NULL;
       }
 
-      _mesa_set_tex_image(texObj, target, level, texImage);
+      set_tex_image(texObj, target, level, texImage);
    }
 
    return texImage;
index d756646ce2611267ce67e795131e0bbe354cb8e5..0354c9ac53109af15a8d93db6b28ccd9c580b58c 100644 (file)
@@ -90,12 +90,6 @@ _mesa_clear_texture_image(struct gl_context *ctx,
                           struct gl_texture_image *texImage);
 
 
-extern void
-_mesa_set_tex_image(struct gl_texture_object *tObj,
-                    GLenum target, GLint level,
-                    struct gl_texture_image *texImage);
-
-
 extern struct gl_texture_object *
 _mesa_select_tex_object(struct gl_context *ctx,
                         const struct gl_texture_unit *texUnit,