diff options
author | José Fonseca <[email protected]> | 2009-06-10 19:58:54 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-06-10 20:05:00 +0100 |
commit | 0a4fcabe4451af6472245e2630f8c8834aa9d351 (patch) | |
tree | d353c7e1d121f96c3263ee0ab9dc7df784971dae /src | |
parent | dbab657fe7842c9ea5315189f31fb3c7238c0158 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_cb_drawpixels.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_drawpixels.c b/src/mesa/state_tracker/st_cb_drawpixels.c index 89725cfe8dc..d92d29e9610 100644 --- a/src/mesa/state_tracker/st_cb_drawpixels.c +++ b/src/mesa/state_tracker/st_cb_drawpixels.c @@ -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 { |