radeon: fallback to sw ReadPixels if color logicop is enabled
authorMaciej Cencora <m.cencora@gmail.com>
Wed, 10 Mar 2010 21:31:53 +0000 (22:31 +0100)
committerMaciej Cencora <m.cencora@gmail.com>
Wed, 10 Mar 2010 21:33:40 +0000 (22:33 +0100)
Fixes glean/logicOp (regressed after introducing hw accelerated support for ReadPixels)

src/mesa/drivers/dri/radeon/radeon_pixel_read.c

index 27841938e66a48f2b6cf32100a3f4a502222ba45..b180c1d9a5c63d498f8ae4cda960abf2ce20c6f7 100644 (file)
@@ -96,7 +96,7 @@ do_blit_readpixels(GLcontext * ctx,
         return GL_FALSE;
     }
 
-    if (ctx->_ImageTransferState) {
+    if (ctx->_ImageTransferState || ctx->Color._LogicOpEnabled) {
         return GL_FALSE;
     }