summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texgetimage.c
diff options
context:
space:
mode:
authorIago Toral Quiroga <itoral@igalia.com>2015-01-13 08:33:19 +0100
committerIago Toral Quiroga <itoral@igalia.com>2015-01-14 07:57:31 +0100
commitc6a2628950202d0792b58e4d7b4d574b6051bdf6 (patch)
tree9f622502d4b7ecca7ff318a20e5ee7d0ec9e06e3 /src/mesa/main/texgetimage.c
parentae417957e04f5f52ac1a15f27c153bc2b426d7dd (diff)
downloadexternal_mesa3d-c6a2628950202d0792b58e4d7b4d574b6051bdf6.zip
external_mesa3d-c6a2628950202d0792b58e4d7b4d574b6051bdf6.tar.gz
external_mesa3d-c6a2628950202d0792b58e4d7b4d574b6051bdf6.tar.bz2
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 <jason.ekstrand@intel.com>
Diffstat (limited to 'src/mesa/main/texgetimage.c')
-rw-r--r--src/mesa/main/texgetimage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c
index e45a45a..e4572e4 100644
--- a/src/mesa/main/texgetimage.c
+++ b/src/mesa/main/texgetimage.c
@@ -314,7 +314,7 @@ get_tex_rgba_compressed(struct gl_context *ctx, GLuint dimensions,
width, height, format, type,
slice, 0, 0);
_mesa_format_convert(dest, dstFormat, dstStride,
- tempSlice, RGBA8888_FLOAT, srcStride,
+ tempSlice, RGBA32_FLOAT, srcStride,
width, height,
needsRebase ? rebaseSwizzle : NULL);
tempSlice += 4 * width * height;
@@ -453,7 +453,7 @@ get_tex_rgba_uncompressed(struct gl_context *ctx, GLuint dimensions,
bool need_convert;
/* We will convert to RGBA float */
- rgba_format = RGBA8888_FLOAT;
+ rgba_format = RGBA32_FLOAT;
rgba_stride = width * 4 * sizeof(GLfloat);
/* If we are lucky and the dst format matches the RGBA format we need