From: Brian Paul Date: Tue, 22 Mar 2016 14:35:25 +0000 (-0600) Subject: swrast: fix discarded const warning in s_texture.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=18c5fa1122eddc2da0912749760356e570631163;p=mesa.git swrast: fix discarded const warning in s_texture.c Signed-off-by: Brian Paul --- diff --git a/src/mesa/swrast/s_texture.c b/src/mesa/swrast/s_texture.c index 25918e3e037..d35bea96b92 100644 --- a/src/mesa/swrast/s_texture.c +++ b/src/mesa/swrast/s_texture.c @@ -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;