From: Brian Paul Date: Mon, 28 Apr 2008 15:40:26 +0000 (-0600) Subject: gallium: check for PIPE_FORMAT_X8Z24_UNORM format X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7f5e9d3f07f6fbfa699bef4ffff85fe0b557584a;p=mesa.git gallium: check for PIPE_FORMAT_X8Z24_UNORM format --- diff --git a/src/mesa/state_tracker/st_cb_readpixels.c b/src/mesa/state_tracker/st_cb_readpixels.c index 1fef55b8443..ddbe36106c8 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;