Mesa (master): mesa: minor formatting fix in get_tex_rgba_compressed()

Brian Paul brianp at kemper.freedesktop.org
Wed Oct 28 17:04:51 UTC 2015


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

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Oct 28 11:03:21 2015 -0600

mesa: minor formatting fix in get_tex_rgba_compressed()

---

 src/mesa/main/texgetimage.c |    3 +--
 1 file changed, 1 insertion(+), 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;




More information about the mesa-commit mailing list