mesa: Fix draw_stencil_pixels for PIPE_FORMAT_Z24S8_UNORM.

Reversed component order.

This fixes glean depthStencil test failures for PIPE_FORMAT_Z24S8_UNORM
visuals.
This commit is contained in:
José Fonseca
2009-06-10 19:58:54 +01:00
parent dbab657fe7
commit 0a4fcabe44
+1 -1
View File
@@ -718,7 +718,7 @@ draw_stencil_pixels(GLcontext *ctx, GLint x, GLint y,
uint *dest = (uint *) (stmap + spanY * pt->stride + spanX*4);
GLint k;
for (k = 0; k < spanWidth; k++) {
dest[k] = zValues[k] | (sValues[k] << 24);
dest[k] = (zValues[k] << 8) | (sValues[k] & 0xff);
}
}
else {