projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
190a291
)
mesa: use sizeof on the correct type
author
Thomas Hindoe Paaboel Andersen
<phomes@gmail.com>
Mon, 22 Feb 2016 22:58:00 +0000
(15:58 -0700)
committer
Brian Paul
<brianp@vmware.com>
Tue, 23 Feb 2016 15:55:35 +0000
(08:55 -0700)
Before the luminance stride was based on the size of GL_FLOAT
which is just the type constant (0x1406). Change it to use the
size of GLfloat.
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/readpix.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/readpix.c
b/src/mesa/main/readpix.c
index 470182ab23d7796abd373c0258a4c40fd937a59d..882d863c1c7c658ea78d149e4d7901891dea65d7 100644
(file)
--- a/
src/mesa/main/readpix.c
+++ b/
src/mesa/main/readpix.c
@@
-582,7
+582,7
@@
read_rgba_pixels( struct gl_context *ctx,
void *luminance;
uint32_t luminance_format;
- luminance_stride = width * sizeof(GL
_FLOAT
);
+ luminance_stride = width * sizeof(GL
float
);
if (format == GL_LUMINANCE_ALPHA)
luminance_stride *= 2;
luminance_bytes = height * luminance_stride;