summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/readpix.c
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2015-01-13 08:33:19 +0100
committerIago Toral Quiroga <[email protected]>2015-01-14 07:57:31 +0100
commitc6a2628950202d0792b58e4d7b4d574b6051bdf6 (patch)
tree9f622502d4b7ecca7ff318a20e5ee7d0ec9e06e3 /src/mesa/main/readpix.c
parentae417957e04f5f52ac1a15f27c153bc2b426d7dd (diff)
mesa: rename RGBA8888_* format constants to something appropriate.
The 8888 suggests 8-bit components which is not correct, so replace that with the actual size of the components in each format. Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/main/readpix.c')
-rw-r--r--src/mesa/main/readpix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c
index c589ca4e202..85f900d6b3f 100644
--- a/src/mesa/main/readpix.c
+++ b/src/mesa/main/readpix.c
@@ -501,14 +501,14 @@ read_rgba_pixels( struct gl_context *ctx,
if (dst_is_integer) {
src_is_uint = _mesa_is_format_unsigned(rb_format);
if (src_is_uint) {
- rgba_format = RGBA8888_UINT;
+ rgba_format = RGBA32_UINT;
rgba_stride = width * 4 * sizeof(GLuint);
} else {
- rgba_format = RGBA8888_INT;
+ rgba_format = RGBA32_INT;
rgba_stride = width * 4 * sizeof(GLint);
}
} else {
- rgba_format = RGBA8888_FLOAT;
+ rgba_format = RGBA32_FLOAT;
rgba_stride = width * 4 * sizeof(GLfloat);
}