From ca7085061ded8a2823e3d7562043eee65807d07d Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 20 Jul 2017 11:53:01 +0200 Subject: [PATCH] mesa: make _mesa_generate_texture_mipmap() static Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- src/mesa/main/genmipmap.c | 12 ++++++------ src/mesa/main/genmipmap.h | 4 ---- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/mesa/main/genmipmap.c b/src/mesa/main/genmipmap.c index 6021c026f53..be49136aa89 100644 --- a/src/mesa/main/genmipmap.c +++ b/src/mesa/main/genmipmap.c @@ -107,10 +107,10 @@ _mesa_is_valid_generate_texture_mipmap_internalformat(struct gl_context *ctx, * Implements glGenerateMipmap and glGenerateTextureMipmap. * Generates all the mipmap levels below the base level. */ -void -_mesa_generate_texture_mipmap(struct gl_context *ctx, - struct gl_texture_object *texObj, GLenum target, - bool dsa) +static void +generate_texture_mipmap(struct gl_context *ctx, + struct gl_texture_object *texObj, GLenum target, + bool dsa) { struct gl_texture_image *srcImage; const char *suffix = dsa ? "Texture" : ""; @@ -187,7 +187,7 @@ _mesa_GenerateMipmap(GLenum target) if (!texObj) return; - _mesa_generate_texture_mipmap(ctx, texObj, target, false); + generate_texture_mipmap(ctx, texObj, target, false); } /** @@ -209,5 +209,5 @@ _mesa_GenerateTextureMipmap(GLuint texture) return; } - _mesa_generate_texture_mipmap(ctx, texObj, texObj->Target, true); + generate_texture_mipmap(ctx, texObj, texObj->Target, true); } diff --git a/src/mesa/main/genmipmap.h b/src/mesa/main/genmipmap.h index 40b7f3636aa..94f7f7a6809 100644 --- a/src/mesa/main/genmipmap.h +++ b/src/mesa/main/genmipmap.h @@ -28,10 +28,6 @@ #include "glheader.h" -extern void -_mesa_generate_texture_mipmap(struct gl_context *ctx, - struct gl_texture_object *texObj, GLenum target, - bool dsa); bool _mesa_is_valid_generate_texture_mipmap_target(struct gl_context *ctx, GLenum target); -- 2.30.2