summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/genmipmap.c12
-rw-r--r--src/mesa/main/genmipmap.h4
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);