st/mesa: only resolve is number of samples is > 1
authorDave Airlie <airlied@redhat.com>
Wed, 30 Nov 2011 20:10:33 +0000 (20:10 +0000)
committerDave Airlie <airlied@redhat.com>
Sat, 10 Dec 2011 09:02:38 +0000 (09:02 +0000)
This fixes the firefox crash but I've no idea if its correct.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_cb_blit.c

index 750f541b5ddf00b9225e49ded714dfe6e32c66d3..8f0c2e8716a0b8c5541fb30a3e4740ffde0eef7b 100644 (file)
@@ -178,7 +178,7 @@ st_BlitFramebuffer(struct gl_context *ctx,
       st->pipe->render_condition(st->pipe, NULL, 0);
    }
 
-   if (readFB->Visual.sampleBuffers > drawFB->Visual.sampleBuffers) {
+   if (readFB->Visual.sampleBuffers > drawFB->Visual.sampleBuffers && readFB->Visual.samples > 1) {
       struct pipe_resolve_info info;
 
       if (dstX0 < dstX1) {