don't use xmesa_DrawPixels_8R8G8B() if there's a software alpha channel
authorBrian Paul <brian.paul@tungstengraphics.com>
Sun, 10 Sep 2006 17:10:36 +0000 (17:10 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sun, 10 Sep 2006 17:10:36 +0000 (17:10 +0000)
src/mesa/drivers/x11/xm_dd.c

index d339ac6bc39c3199a9164f5d6e9dd60399e98d22..11d323082e63584197aa5fd3fb86a49b1be5d2ec 100644 (file)
@@ -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 */