radeon: dri2 is hooked up elsewhere now
authorDave Airlie <airlied@redhat.com>
Sat, 21 Mar 2009 11:38:28 +0000 (22:38 +1100)
committerDave Airlie <airlied@redhat.com>
Sat, 21 Mar 2009 11:38:28 +0000 (22:38 +1100)
src/mesa/drivers/dri/radeon/radeon_common.h

index 528ea9dce4a8b0cf7c5dbfa48062baee30232fb1..c97492d742a2ab776487cc65e8598d930ab6cb19 100644 (file)
@@ -67,12 +67,8 @@ static inline struct radeon_renderbuffer *radeon_get_depthbuffer(radeonContextPt
 static inline struct radeon_renderbuffer *radeon_get_colorbuffer(radeonContextPtr rmesa)
 {
        struct radeon_renderbuffer *rrb;
-       struct radeon_framebuffer *rfb = rmesa->dri.drawable->driverPrivate;
 
        rrb = rmesa->state.color.rrb;
-       if (rmesa->radeonScreen->driScreen->dri2.enabled) {
-               rrb = radeon_get_renderbuffer(&rfb->base, BUFFER_BACK_LEFT);
-       }
        if (!rrb)
                return NULL;
        return rrb;