summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-07-20 11:53:01 +0200
committerSamuel Pitoiset <[email protected]>2017-07-20 16:14:30 +0200
commitca7085061ded8a2823e3d7562043eee65807d07d (patch)
tree2200798b0babf92f141ba5bc016000978d07dd66 /src/mesa/main
parenta1819704c8f100d4320a7b15414492a180962f03 (diff)
mesa: make _mesa_generate_texture_mipmap() static
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main')
-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);