From: Brian Paul Date: Sun, 18 Dec 2011 17:02:42 +0000 (-0700) Subject: mesa: make _mesa_set_tex_image() static since it's not called anywhere else X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=009ac0618ccb8c1347c353b576442ed70592c20e;p=mesa.git mesa: make _mesa_set_tex_image() static since it's not called anywhere else --- 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,