Module: Mesa
Branch: master
Commit: 3409118371b26b534ea64a96ae051392691769f7
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3409118371b26b534ea64a96ae051392691769f7

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

mesa: Avoid void * arithmetic.

Should fix MSVC build.

---

 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 e4f964f..85ad9b5 100644
--- a/src/mesa/main/bufferobj.c
+++ b/src/mesa/main/bufferobj.c
@@ -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));

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to