From faef0bf40fd25c9141a4d531f9ef08040dcdcf49 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Fri, 7 Dec 2018 12:56:34 +0100 Subject: [PATCH] vrend: remove pointless GL_FRAMEBUFFER update In the only codepath that leads here, this exact binding has already been made, so let's avoid double-work. This one makes sense on it's own. Signed-off-by: Dave Airlie --- src/vrend_renderer.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index e11fa81..2c8b786 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -2033,7 +2033,6 @@ static void vrend_hw_emit_framebuffer_state(struct vrend_context *ctx) GL_COLOR_ATTACHMENT6, GL_COLOR_ATTACHMENT7, }; - glBindFramebuffer(GL_FRAMEBUFFER, ctx->sub->fb_id); if (ctx->sub->nr_cbufs == 0) { glReadBuffer(GL_NONE);