On 14 February 2016 at 21:33, Stefan Dösinger stefandoesinger@gmx.at wrote:
@@ -65,18 +66,21 @@ static void surface_cleanup(struct wined3d_surface *surface) if (surface->rb_multisample) { TRACE("Deleting multisample renderbuffer %u.\n", surface->rb_multisample);
context_gl_resource_released(device, surface->rb_multisample, TRUE); gl_info->fbo_ops.glDeleteRenderbuffers(1, &surface->rb_multisample);
I'm not sure it would necessarily be much better, but one alternative would be to make the context do the deletion.