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 <jakob@collabora.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Signed-off-by: Jakob Bornecrantz <jakob@collabora.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
macos/master
Erik Faye-Lund 6 years ago committed by Dave Airlie
parent 6ae19d3da2
commit 39c2099b2a
  1. 3
      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);

Loading…
Cancel
Save