summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast
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/swrast
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/swrast')
-rw-r--r--src/mesa/swrast/s_drawpix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_drawpix.c b/src/mesa/swrast/s_drawpix.c
index b30e389..c992519 100644
--- a/src/mesa/swrast/s_drawpix.c
+++ b/src/mesa/swrast/s_drawpix.c
@@ -489,7 +489,7 @@ draw_rgba_pixels( struct gl_context *ctx, GLint x, GLint y,
uint32_t srcMesaFormat = _mesa_format_from_format_and_type(format, type);
for (row = 0; row < height; row++) {
int dstRowStride = 4 * width * sizeof(float);
- _mesa_format_convert(rgba, RGBA8888_FLOAT, dstRowStride,
+ _mesa_format_convert(rgba, RGBA32_FLOAT, dstRowStride,
(void*)source, srcMesaFormat, srcStride,
spanWidth, 1, NULL);
if (transferOps)