From ef8244df1a195f227b1cdf2f944b7fd7a9917adf Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sun, 10 Sep 2006 17:10:36 +0000 Subject: [PATCH] don't use xmesa_DrawPixels_8R8G8B() if there's a software alpha channel --- src/mesa/drivers/x11/xm_dd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */ -- 2.30.2