diff --git a/src/mesa/drivers/dri/unichrome/via_context.c b/src/mesa/drivers/dri/unichrome/via_context.c index 4d25d32..2e29b53 100644 --- a/src/mesa/drivers/dri/unichrome/via_context.c +++ b/src/mesa/drivers/dri/unichrome/via_context.c @@ -222,7 +222,9 @@ calculate_buffer_parameters(struct via_context *vmesa, /* do one-time init for the renderbuffers */ viaInitRenderbuffer(&vmesa->front, GL_RGBA, dPriv); viaSetSpanFunctions(&vmesa->front, &fb->Visual); - _mesa_add_renderbuffer(fb, BUFFER_FRONT_LEFT, &vmesa->front.Base); + if (!fb->Attachment[BUFFER_FRONT_LEFT].Renderbuffer) { + _mesa_add_renderbuffer(fb, BUFFER_FRONT_LEFT, &vmesa->front.Base); + } if (fb->Visual.doubleBufferMode) { viaInitRenderbuffer(&vmesa->back, GL_RGBA, dPriv);