Mesa (master): mesa: fix warning (MSVC error) about void pointer arithmetic

Brian Paul brianp at kemper.freedesktop.org
Mon Oct 3 16:52:15 PDT 2011


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

Author: Brian Paul <brianp at vmware.com>
Date:   Mon Oct  3 17:37:04 2011 -0600

mesa: fix warning (MSVC error) about void pointer arithmetic

---

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

diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c
index 658db20..34ee539 100644
--- a/src/mesa/main/texstore.c
+++ b/src/mesa/main/texstore.c
@@ -4653,7 +4653,7 @@ _mesa_store_teximage2d(struct gl_context *ctx, GLenum target, GLint level,
          if (!success)
             break;
 
-         pixels += srcStride;
+         pixels = (const GLubyte *) pixels + srcStride;
       }
    } else {
       /* Map dest texture buffer (write to whole region) */



More information about the mesa-commit mailing list