[PATCH 6/6] wined3d: Unbind the UAV BO after clearing in wined3d_unordered_access_view_gl_clear().

Zebediah Figura zfigura at codeweavers.com
Tue Nov 23 21:17:12 CST 2021


Signed-off-by: Zebediah Figura <zfigura at 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");
 }
-- 
2.33.0




More information about the wine-devel mailing list