summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/genmipmap.h
diff options
context:
space:
mode:
authorAntia Puentes <[email protected]>2015-11-26 15:20:24 +0100
committerEduardo Lima Mitev <[email protected]>2016-03-03 15:14:06 +0100
commit079d99b830073f55a22954f6bb2b56cfb731e5e3 (patch)
treebe83e07935d18427172b2824e8542c555aaa173b /src/mesa/main/genmipmap.h
parent06852f4b7a1ab9ea724bd7708662b2e6549aa98e (diff)
mesa/genmipmap: Added a function to validate the internalformat
It will be used by the ARB_internalformat_query2 implementation to implement mipmap related queries. Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa/main/genmipmap.h')
-rw-r--r--src/mesa/main/genmipmap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/genmipmap.h b/src/mesa/main/genmipmap.h
index 843eeace30a..40b7f3636aa 100644
--- a/src/mesa/main/genmipmap.h
+++ b/src/mesa/main/genmipmap.h
@@ -35,6 +35,9 @@ _mesa_generate_texture_mipmap(struct gl_context *ctx,
bool
_mesa_is_valid_generate_texture_mipmap_target(struct gl_context *ctx,
GLenum target);
+bool
+_mesa_is_valid_generate_texture_mipmap_internalformat(struct gl_context *ctx,
+ GLenum internalformat);
extern void GLAPIENTRY
_mesa_GenerateMipmap(GLenum target);