From 06852f4b7a1ab9ea724bd7708662b2e6549aa98e Mon Sep 17 00:00:00 2001 From: Antia Puentes Date: Thu, 26 Nov 2015 15:08:47 +0100 Subject: 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 --- src/mesa/main/genmipmap.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mesa/main/genmipmap.h') 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); -- cgit v1.2.3