renderer: drop reference to any shaders in sub context destroy.

We were holding onto a reference for these, causing a leak.
macos/master
Dave Airlie 10 years ago
parent 9537d5a6dc
commit e2b6de9a89
  1. 4
      src/vrend_renderer.c

@ -3204,6 +3204,10 @@ static void vrend_destroy_sub_context(struct vrend_sub_context *sub)
glDeleteVertexArrays(1, &sub->vaoid);
vrend_shader_state_reference(&sub->vs, NULL);
vrend_shader_state_reference(&sub->fs, NULL);
vrend_shader_state_reference(&sub->gs, NULL);
vrend_free_programs(sub);
glDeleteVertexArrays(1, &sub->vaoid);

Loading…
Cancel
Save