diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-04-28 09:40:26 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-04-28 09:40:26 -0600 |
commit | 7f5e9d3f07f6fbfa699bef4ffff85fe0b557584a (patch) | |
tree | b0366c569674f38367e5f06779498cc8b957f190 | |
parent | 44c79f88b8abbbcafe4e6e462d7f0d8505265e2b (diff) |
gallium: check for PIPE_FORMAT_X8Z24_UNORM format
-rw-r--r-- | src/mesa/state_tracker/st_cb_readpixels.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_readpixels.c b/src/mesa/state_tracker/st_cb_readpixels.c index 1fef55b844..ddbe36106c 100644 --- a/src/mesa/state_tracker/st_cb_readpixels.c +++ b/src/mesa/state_tracker/st_cb_readpixels.c @@ -240,7 +240,8 @@ st_readpixels(GLcontext *ctx, GLint x, GLint y, GLsizei width, GLsizei height, const GLint dstStride = _mesa_image_row_stride(&clippedPacking, width, format, type); - if (strb->surface->format == PIPE_FORMAT_S8Z24_UNORM) { + if (strb->surface->format == PIPE_FORMAT_S8Z24_UNORM || + strb->surface->format == PIPE_FORMAT_X8Z24_UNORM) { if (format == GL_DEPTH_COMPONENT) { for (i = 0; i < height; i++) { GLuint ztemp[MAX_WIDTH], j; |