summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/genmipmap.h
diff options
context:
space:
mode:
authorAntia Puentes <[email protected]>2015-11-26 15:08:47 +0100
committerEduardo Lima Mitev <[email protected]>2016-03-03 15:14:06 +0100
commit06852f4b7a1ab9ea724bd7708662b2e6549aa98e (patch)
treec99373f428083ac51e50a07efb204bd7ee9dde83 /src/mesa/main/genmipmap.h
parentdf3a37311d2cb1bf83e6803a8c974b7269d4c3c9 (diff)
mesa/genmipmap: Added a function to check if the target is valid
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 f4ef859511e..843eeace30a 100644
--- a/src/mesa/main/genmipmap.h
+++ b/src/mesa/main/genmipmap.h
@@ -32,6 +32,9 @@ 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);
extern void GLAPIENTRY
_mesa_GenerateMipmap(GLenum target);