summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texgetimage.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2015-10-28 11:03:21 -0600
committerBrian Paul <brianp@vmware.com>2015-10-28 11:03:21 -0600
commit8e9c3070bf45cd33a77537c6769d422d2c9fa8c3 (patch)
tree3633f78e36df7e864b4816e0e0f08213ece6f8c7 /src/mesa/main/texgetimage.c
parentf04f13622f3e71bee057d60a6be9c53b92b56cc9 (diff)
downloadexternal_mesa3d-8e9c3070bf45cd33a77537c6769d422d2c9fa8c3.zip
external_mesa3d-8e9c3070bf45cd33a77537c6769d422d2c9fa8c3.tar.gz
external_mesa3d-8e9c3070bf45cd33a77537c6769d422d2c9fa8c3.tar.bz2
mesa: minor formatting fix in get_tex_rgba_compressed()
Diffstat (limited to 'src/mesa/main/texgetimage.c')
-rw-r--r--src/mesa/main/texgetimage.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c
index 682b727..945890a 100644
--- a/src/mesa/main/texgetimage.c
+++ b/src/mesa/main/texgetimage.c
@@ -297,8 +297,7 @@ get_tex_rgba_compressed(struct gl_context *ctx, GLuint dimensions,
uint8_t rebaseSwizzle[4];
/* Decompress into temp float buffer, then pack into user buffer */
- tempImage = malloc(width * height * depth
- * 4 * sizeof(GLfloat));
+ tempImage = malloc(width * height * depth * 4 * sizeof(GLfloat));
if (!tempImage) {
_mesa_error(ctx, GL_OUT_OF_MEMORY, "glGetTexImage()");
return;