aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2006-09-10 17:10:36 +0000
committerBrian Paul <[email protected]>2006-09-10 17:10:36 +0000
commitef8244df1a195f227b1cdf2f944b7fd7a9917adf (patch)
tree73ef87986e1d7c21ec4ecf8fc58e20fe8dfc69ad
parent799896244439c586b9610c7eedfef715f652d51b (diff)
don't use xmesa_DrawPixels_8R8G8B() if there's a software alpha channel
-rw-r--r--src/mesa/drivers/x11/xm_dd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/x11/xm_dd.c b/src/mesa/drivers/x11/xm_dd.c
index d339ac6bc39..11d323082e6 100644
--- a/src/mesa/drivers/x11/xm_dd.c
+++ b/src/mesa/drivers/x11/xm_dd.c
@@ -1,6 +1,6 @@
/*
* Mesa 3-D graphics library
- * Version: 6.5
+ * Version: 6.5.1
*
* Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
*
@@ -620,6 +620,7 @@ xmesa_DrawPixels_8R8G8B( GLcontext *ctx,
_swrast_validate_derived( ctx );
if (xrb->pixmap &&
+ xrb->Base.AlphaBits == 0 &&
format == GL_BGRA &&
type == GL_UNSIGNED_BYTE &&
(swrast->_RasterMask & ~CLIP_BIT) == 0 && /* no blend, z-test, etc */