util: Unsaved change missing from last commit.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 2 Jun 2009 23:41:45 +0000 (16:41 -0700)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 2 Jun 2009 23:41:45 +0000 (16:41 -0700)
src/gallium/auxiliary/util/u_tile.c

index a2fcdad9e4d0ae3068ac1d3641a9a00d62903c5e..9747a55cbfa778a39cc1bd5f6300163985a015df 100644 (file)
@@ -1141,7 +1141,7 @@ pipe_get_tile_z(struct pipe_transfer *pt,
          for (i = 0; i < h; i++) {
             for (j = 0; j < w; j++) {
                /* convert 24-bit Z to 32-bit Z */
-               pDest[j] = (ptrc[j] & 0xffffff00) | (ptrc[j] & 0xff);
+               pDest[j] = (ptrc[j] & 0xffffff00) | ((ptrc[j] >> 24) & 0xff);
             }
             pDest += dstStride;
             ptrc += pt->stride/4;