Bug 798758. qcms: Fix component order typo. r=Bas
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Sat, 06 Oct 2012 08:20:50 -0400
changeset 109360 6d185126ad5e780a766396330c22c6db18326f61
parent 109359 2da1f2bde40e77e62ccf04b38d7dcc1497362faa
child 109361 b47091bd31446103a4a66e47da3759e9bdb025d2
push id23628
push userjmuizelaar@mozilla.com
push dateSat, 06 Oct 2012 12:20:58 +0000
treeherdermozilla-central@6d185126ad5e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersBas
bugs798758, 791422
milestone18.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 798758. qcms: Fix component order typo. r=Bas This was caused by bug 791422 (bd16a5d51273)
gfx/qcms/transform.c
--- a/gfx/qcms/transform.c
+++ b/gfx/qcms/transform.c
@@ -372,17 +372,17 @@ static void qcms_transform_data_rgb_out_
 
 		/* we could round here... */
 		r = out_linear_r * PRECACHE_OUTPUT_MAX;
 		g = out_linear_g * PRECACHE_OUTPUT_MAX;
 		b = out_linear_b * PRECACHE_OUTPUT_MAX;
 
 		dest[OUTPUT_R_INDEX] = transform->output_table_r->data[r];
 		dest[OUTPUT_G_INDEX] = transform->output_table_g->data[g];
-		dest[OUTPUT_A_INDEX] = transform->output_table_b->data[b];
+		dest[OUTPUT_B_INDEX] = transform->output_table_b->data[b];
 		dest += RGB_OUTPUT_COMPONENTS;
 	}
 }
 
 static void qcms_transform_data_rgba_out_lut_precache(qcms_transform *transform, unsigned char *src, unsigned char *dest, size_t length)
 {
 	unsigned int i;
 	float (*mat)[4] = transform->matrix;