diff options
Diffstat (limited to 'src')
-rw-r--r-- | 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 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) */ |