diff options
author | Nian Wu <nian.wu@intel.com> | 2007-03-19 17:00:19 +0800 |
---|---|---|
committer | Nian Wu <nian.wu@intel.com> | 2007-03-19 17:00:19 +0800 |
commit | e01ee3da577f177e77153f3a33d39e13f5e3f9cb (patch) | |
tree | 14bcfd5a30a5b24b22a9b773b4ba6211e50e8958 /src/mesa/swrast/s_drawpix.c | |
parent | fd1b1fce3faaf40af201a5b06a84df62c855fb12 (diff) | |
parent | 77544d7b7d7c6fd03c0df81dca07f1bb3a67c119 (diff) |
Merge git://proxy01.pd.intel.com:9419/git/mesa/mesa into crestline
Diffstat (limited to 'src/mesa/swrast/s_drawpix.c')
-rw-r--r-- | src/mesa/swrast/s_drawpix.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_drawpix.c b/src/mesa/swrast/s_drawpix.c index d945a871ae..d97d53e83b 100644 --- a/src/mesa/swrast/s_drawpix.c +++ b/src/mesa/swrast/s_drawpix.c @@ -452,7 +452,8 @@ draw_depth_pixels( GLcontext *ctx, GLint x, GLint y, && !scaleOrBias && !zoom && ctx->Visual.rgbMode - && width <= MAX_WIDTH) { + && width <= MAX_WIDTH + && !unpack->SwapBytes) { /* Special case: directly write 16-bit depth values */ GLint row; for (row = 0; row < height; row++) { @@ -472,7 +473,8 @@ draw_depth_pixels( GLcontext *ctx, GLint x, GLint y, && !scaleOrBias && !zoom && ctx->Visual.rgbMode - && width <= MAX_WIDTH) { + && width <= MAX_WIDTH + && !unpack->SwapBytes) { /* Special case: shift 32-bit values down to Visual.depthBits */ const GLint shift = 32 - ctx->DrawBuffer->Visual.depthBits; GLint row; |