summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-12-18 10:02:42 -0700
committerBrian Paul <[email protected]>2011-12-18 17:56:08 -0700
commit009ac0618ccb8c1347c353b576442ed70592c20e (patch)
treeac6bc0b95bb3a212bbaa04a0eb983789d4a636ae /src/mesa
parentf20261028843a4c5d572e0001b813f7c786a2f12 (diff)
mesa: make _mesa_set_tex_image() static since it's not called anywhere else
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/teximage.c14
-rw-r--r--src/mesa/main/teximage.h6
2 files changed, 7 insertions, 13 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index eccc0fd39b9..841240c4c21 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -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;
diff --git a/src/mesa/main/teximage.h b/src/mesa/main/teximage.h
index d756646ce26..0354c9ac531 100644
--- a/src/mesa/main/teximage.h
+++ b/src/mesa/main/teximage.h
@@ -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,