Signed-off-by: Zebediah Figura zfigura@codeweavers.com --- dlls/wined3d/view.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/wined3d/view.c b/dlls/wined3d/view.c index 5905a4bcfb5..5b9a717a832 100644 --- a/dlls/wined3d/view.c +++ b/dlls/wined3d/view.c @@ -1599,6 +1599,7 @@ void wined3d_unordered_access_view_gl_clear(struct wined3d_unordered_access_view wined3d_context_gl_bind_bo(context_gl, bo_gl->binding, bo_gl->id); GL_EXTCALL(glClearBufferSubData(bo_gl->binding, format_gl->internal, bo_gl->b.buffer_offset + offset, size, format_gl->format, format_gl->type, clear_value)); + wined3d_context_gl_bind_bo(context_gl, bo_gl->binding, 0); wined3d_context_gl_reference_bo(context_gl, bo_gl); checkGLcall("clear unordered access view"); }