projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f04f136
)
mesa: minor formatting fix in get_tex_rgba_compressed()
author
Brian Paul
<brianp@vmware.com>
Wed, 28 Oct 2015 17:03:21 +0000
(11:03 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 28 Oct 2015 17:03:21 +0000
(11:03 -0600)
src/mesa/main/texgetimage.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texgetimage.c
b/src/mesa/main/texgetimage.c
index 682b72755c7a6a7abf50db5c65d73fae19a16833..945890aeeb5549ed84c215ba9891f4f6350dd665 100644
(file)
--- 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;