From 39c2099b2a497284bb53c91515f718f6321364a8 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Fri, 7 Dec 2018 12:56:08 +0100 Subject: [PATCH] vrend: assume current framebuffer binding is still correct We shouldn't clobber this state any more, so this assumption should be safe. Tested-by: Jakob Bornecrantz Reviewed-by: Gurchetan Singh Signed-off-by: Erik Faye-Lund Signed-off-by: Jakob Bornecrantz Signed-off-by: Dave Airlie --- src/vrend_renderer.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 17c0850..273ad18 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -3212,8 +3212,6 @@ void vrend_clear(struct vrend_context *ctx, if (ctx->ctx_switch_pending) vrend_finish_context_switch(ctx); - glBindFramebuffer(GL_FRAMEBUFFER, ctx->sub->fb_id); - vrend_update_frontface_state(ctx); if (ctx->sub->stencil_state_dirty) vrend_update_stencil_state(ctx); @@ -3981,7 +3979,6 @@ int vrend_draw_vbo(struct vrend_context *ctx, fprintf(stderr,"dropping rendering due to missing shaders: %s\n", ctx->debug_name); return 0; } - glBindFramebuffer(GL_FRAMEBUFFER, ctx->sub->fb_id); vrend_use_program(ctx, ctx->sub->prog->id);