From b2c3fd984a51d639d219a9d2c7f7796a2f70a80e Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 4 Dec 2017 21:27:54 -0700 Subject: [PATCH] mesa: add const qualifier in test_attachment_completeness() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák --- src/mesa/main/fbobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index 81165630d0d..f7702f1c13b 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -793,7 +793,7 @@ test_attachment_completeness(const struct gl_context *ctx, GLenum format, /* Look for reasons why the attachment might be incomplete */ if (att->Type == GL_TEXTURE) { const struct gl_texture_object *texObj = att->Texture; - struct gl_texture_image *texImage; + const struct gl_texture_image *texImage; GLenum baseFormat; if (!texObj) { -- 2.30.2