swrast: Avoid void * arithmetic.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 4 Nov 2011 08:54:55 +0000 (08:54 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 4 Nov 2011 08:54:55 +0000 (08:54 +0000)
An error with MSVC.

src/mesa/swrast/s_readpix.c

index c36746cafafe0cda3ae6440c0b2110a78650a310..50422dbd59f990da90cdf5d171dd26180005bce4 100644 (file)
@@ -305,7 +305,7 @@ static GLboolean
 fast_read_depth_stencil_pixels(struct gl_context *ctx,
                               GLint x, GLint y,
                               GLsizei width, GLsizei height,
-                              GLvoid *dst, int dstStride)
+                              GLubyte *dst, int dstStride)
 {
    struct gl_framebuffer *fb = ctx->ReadBuffer;
    struct gl_renderbuffer *rb = fb->Attachment[BUFFER_DEPTH].Renderbuffer;