renderer: some minor cleanups

don't call same functions twice in 2 places, don't
bother hand cleaning up stuff
macos/master
Dave Airlie 10 years ago
parent 431c818c6a
commit 44a7c8cf99
  1. 8
      src/vrend_renderer.c

@ -3210,8 +3210,6 @@ static void vrend_destroy_sub_context(struct vrend_sub_context *sub)
vrend_free_programs(sub);
glDeleteVertexArrays(1, &sub->vaoid);
vrend_object_fini_ctx_table(sub->object_hash);
vrend_clicbs->destroy_gl_context(sub->gl_context);
@ -3249,10 +3247,6 @@ bool vrend_destroy_context(struct vrend_context *ctx)
LIST_FOR_EACH_ENTRY_SAFE(sub, tmp, &ctx->sub_ctxs, head)
vrend_destroy_sub_context(sub);
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
vrend_bind_va(0);
vrend_object_fini_ctx_table(ctx->res_hash);
FREE(ctx);
@ -4203,7 +4197,7 @@ int vrend_renderer_transfer_iov(const struct vrend_transfer_info *info,
int transfer_mode)
{
struct vrend_resource *res;
struct vrend_context *ctx = vrend_lookup_renderer_ctx(info->ctx_id);
struct vrend_context *ctx;
struct iovec *iov;
int num_iovs;

Loading…
Cancel
Save