Mesa (8.0): mesa: Avoid void * arithmetic.

Brian Paul brianp at kemper.freedesktop.org
Mon Jun 18 16:34:35 UTC 2012


Module: Mesa
Branch: 8.0
Commit: 7fd94900e068352aeaa9d6971fd55b5702bc49b9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7fd94900e068352aeaa9d6971fd55b5702bc49b9

Author: José Fonseca <jose.r.fonseca at gmail.com>
Date:   Fri Jan 27 21:54:12 2012 +0000

mesa: Avoid void * arithmetic.

Should fix MSVC build.
(cherry picked from commit 3409118371b26b534ea64a96ae051392691769f7)

---

 src/mesa/main/bufferobj.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
index 41eb7c9..32da289 100644
--- a/src/mesa/main/bufferobj.c
+++ b/src/mesa/main/bufferobj.c
@@ -524,7 +524,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));




More information about the mesa-commit mailing list