vrend: vrend_destroy_context: fix wrong ctx

Fix not switching to corresponding context when deleting FBOs.
FBOs are not sharable between contexts.

Signed-off-by: Ka Ho Ng <khng300@gmail.com>
Reviewed-by: Elie Tournier <elie.tournier@collabora.com>
macos/master
Ka Ho Ng 5 years ago
parent d9ad02102c
commit e24a0328da
  1. 1
      src/vrend_renderer.c

@ -6003,6 +6003,7 @@ void vrend_destroy_context(struct vrend_context *ctx)
glDeleteTextures(1, &ctx->pstipple_tex_id);
ctx->pstip_inited = false;
}
vrend_clicbs->make_current(ctx->sub->gl_context);
/* reset references on framebuffers */
vrend_set_framebuffer_state(ctx, 0, NULL, 0);

Loading…
Cancel
Save