Mesa (master): radeon: Always initialize front and back renderbuffers if present

Nicolai Hähnle nh at kemper.freedesktop.org
Sat Jun 27 16:17:04 UTC 2009


Module: Mesa
Branch: master
Commit: dbb56687c83845cc20aee7243e437a32e5c79a70
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=dbb56687c83845cc20aee7243e437a32e5c79a70

Author: Nicolai Hähnle <nhaehnle at gmail.com>
Date:   Mon Jun  1 22:17:07 2009 +0200

radeon: Always initialize front and back renderbuffers if present

This fixes an assertion in glReadPixels from the front buffer.

Signed-off-by: Nicolai Hähnle <nhaehnle at gmail.com>

---

 .../drivers/dri/radeon/radeon_common_context.c     |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/radeon/radeon_common_context.c b/src/mesa/drivers/dri/radeon/radeon_common_context.c
index eb0e5b3..009859f 100644
--- a/src/mesa/drivers/dri/radeon/radeon_common_context.c
+++ b/src/mesa/drivers/dri/radeon/radeon_common_context.c
@@ -487,8 +487,7 @@ radeon_update_renderbuffers(__DRIcontext *context, __DRIdrawable *drawable)
 		struct radeon_renderbuffer *stencil_rb;
 
 		i = 0;
-		if ((radeon->is_front_buffer_rendering || !draw->color_rb[1])
-			&& draw->color_rb[0]) {
+		if (draw->color_rb[0]) {
 			attachments[i++] = __DRI_BUFFER_FRONT_LEFT;
 			attachments[i++] = radeon_bits_per_pixel(draw->color_rb[0]);
 		}




More information about the mesa-commit mailing list