mesa: add const qualifier in test_attachment_completeness()
authorBrian Paul <brianp@vmware.com>
Tue, 5 Dec 2017 04:27:54 +0000 (21:27 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 5 Dec 2017 22:32:25 +0000 (15:32 -0700)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/fbobject.c

index 81165630d0d7219fa26d011b15a94bfb3b76529b..f7702f1c13b6ec3f162ff72cd57bcc9624e86d7a 100644 (file)
@@ -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) {