mesa: Avoid void * arithmetic.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Fri, 27 Jan 2012 21:54:12 +0000 (21:54 +0000)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Fri, 27 Jan 2012 21:54:12 +0000 (21:54 +0000)
Should fix MSVC build.

src/mesa/main/bufferobj.c

index e4f964f1826171db107a996fb5f514cb8f5670fa..85ad9b55c8485edc62c44057d45c5bc94b4737a9 100644 (file)
@@ -520,7 +520,7 @@ _mesa_copy_buffer_subdata(struct gl_context *ctx,
                           GLintptr readOffset, GLintptr writeOffset,
                           GLsizeiptr size)
 {
-   void *srcPtr, *dstPtr;
+   GLubyte *srcPtr, *dstPtr;
 
    /* the buffers should not be mapped */
    assert(!_mesa_bufferobj_mapped(src));