summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/teximage.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2015-08-27 14:33:40 -0600
committerBrian Paul <brianp@vmware.com>2015-08-27 15:22:01 -0600
commit52f748792393c681f35025be7d843e6426fa327d (patch)
treee5fbd04b2e320b59a70202651057f71d4f0c0c8b /src/mesa/main/teximage.c
parent2259b111003f2e8c55cae42677ec45345fb1b6e3 (diff)
downloadexternal_mesa3d-52f748792393c681f35025be7d843e6426fa327d.zip
external_mesa3d-52f748792393c681f35025be7d843e6426fa327d.tar.gz
external_mesa3d-52f748792393c681f35025be7d843e6426fa327d.tar.bz2
mesa: rename rowStride to imageStride in texturesubimage()
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Diffstat (limited to 'src/mesa/main/teximage.c')
-rw-r--r--src/mesa/main/teximage.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index ee4b610..bfb0858 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -3764,7 +3764,7 @@ texturesubimage(struct gl_context *ctx, GLuint dims,
/* Must handle special case GL_TEXTURE_CUBE_MAP. */
if (texObj->Target == GL_TEXTURE_CUBE_MAP) {
- GLint rowStride;
+ GLint imageStride;
/*
* What do we do if the user created a texture with the following code
@@ -3802,8 +3802,8 @@ texturesubimage(struct gl_context *ctx, GLuint dims,
return;
}
- rowStride = _mesa_image_image_stride(&ctx->Unpack, width, height,
- format, type);
+ imageStride = _mesa_image_image_stride(&ctx->Unpack, width, height,
+ format, type);
/* Copy in each face. */
for (i = zoffset; i < zoffset + depth; ++i) {
texImage = texObj->Image[i][level];
@@ -3813,7 +3813,7 @@ texturesubimage(struct gl_context *ctx, GLuint dims,
level, xoffset, yoffset, 0,
width, height, 1, format,
type, pixels, true);
- pixels = (GLubyte *) pixels + rowStride;
+ pixels = (GLubyte *) pixels + imageStride;
}
}
else {