mesa: add cast to silence warning in _mesa_pack_rgba_span_from_ints()
authorBrian Paul <brianp@vmware.com>
Thu, 16 Aug 2012 14:55:48 +0000 (08:55 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 16 Aug 2012 14:55:48 +0000 (08:55 -0600)
src/mesa/main/pack.c

index 7aebd45ea2bd094c6f710ea8b42830ced3c24b7d..4c99199d9d11536f5a38f73e92cded42ba89b15e 100644 (file)
@@ -926,7 +926,7 @@ _mesa_pack_rgba_span_from_ints(struct gl_context *ctx, GLuint n, GLint rgba[][4]
       break;
    case GL_INT:
       /* No conversion necessary. */
-      pack_uint_from_uint_rgba(ctx, dstAddr, dstFormat, rgba, n);
+      pack_uint_from_uint_rgba(ctx, dstAddr, dstFormat, (GLuint (*)[4]) rgba, n);
       break;
    case GL_UNSIGNED_SHORT:
       pack_ushort_from_int_rgba(ctx, dstAddr, dstFormat, rgba, n);