From: Brian Paul Date: Sun, 10 Sep 2006 17:10:36 +0000 (+0000) Subject: don't use xmesa_DrawPixels_8R8G8B() if there's a software alpha channel X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ef8244df1a195f227b1cdf2f944b7fd7a9917adf;p=mesa.git don't use xmesa_DrawPixels_8R8G8B() if there's a software alpha channel --- 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 */