From 6a04fa9cd4982f056588e11263345e1561197261 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 3 Oct 2011 17:37:04 -0600 Subject: [PATCH] mesa: fix warning (MSVC error) about void pointer arithmetic --- src/mesa/main/texstore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index 658db2066b5..34ee53952ae 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) */ -- 2.30.2