From 95392cfa9d815ec985ba14dfe347b30d232ed9e7 Mon Sep 17 00:00:00 2001 From: Alejandro PiƱeiro Date: Fri, 20 Nov 2015 10:34:50 +0100 Subject: mesa/main: not fill mesa_error on _mesa_legal_texture_base_format_for_target This would allow to use this method if you are just querying if it is allowed, like for arb_internalformat_query2. Reviewed-by: Dave Airlie --- src/mesa/main/teximage.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/mesa/main/teximage.h') diff --git a/src/mesa/main/teximage.h b/src/mesa/main/teximage.h index 41f145c4cc8..5a29c6c687d 100644 --- a/src/mesa/main/teximage.h +++ b/src/mesa/main/teximage.h @@ -210,9 +210,7 @@ _mesa_validate_texbuffer_format(const struct gl_context *ctx, bool _mesa_legal_texture_base_format_for_target(struct gl_context *ctx, GLenum target, - GLenum internalFormat, - unsigned dimensions, - const char *caller); + GLenum internalFormat); bool _mesa_format_no_online_compression(const struct gl_context *ctx, GLenum format); -- cgit v1.2.3