swrast: fix discarded const warning in s_texture.c
authorBrian Paul <brianp@vmware.com>
Tue, 22 Mar 2016 14:35:25 +0000 (08:35 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 22 Mar 2016 14:35:27 +0000 (08:35 -0600)
Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/swrast/s_texture.c

index 25918e3e037168fac8936488a307360e315f00d8..d35bea96b92a43b0a965784adba7e5ef6f28c671 100644 (file)
@@ -60,7 +60,7 @@ _swrast_delete_texture_image(struct gl_context *ctx,
 }
 
 static unsigned int
-texture_slices(struct gl_texture_image *texImage)
+texture_slices(const struct gl_texture_image *texImage)
 {
    if (texImage->TexObject->Target == GL_TEXTURE_1D_ARRAY)
       return texImage->Height;