[PATCH 4/5] wined3d: Reference the indirect buffer bo in dispatch_compute().
Henri Verbeet
hverbeet at codeweavers.com
Tue Dec 1 11:08:04 CST 2020
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
dlls/wined3d/context_gl.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/wined3d/context_gl.c b/dlls/wined3d/context_gl.c
index 419fc4923bd..d0c2f707ed0 100644
--- a/dlls/wined3d/context_gl.c
+++ b/dlls/wined3d/context_gl.c
@@ -4107,6 +4107,7 @@ void dispatch_compute(struct wined3d_device *device, const struct wined3d_state
GL_EXTCALL(glBindBuffer(GL_DISPATCH_INDIRECT_BUFFER, buffer_gl->bo.id));
GL_EXTCALL(glDispatchComputeIndirect((GLintptr)indirect->offset));
GL_EXTCALL(glBindBuffer(GL_DISPATCH_INDIRECT_BUFFER, 0));
+ wined3d_context_gl_reference_bo(context_gl, &buffer_gl->bo);
}
else
{
--
2.20.1
More information about the wine-devel
mailing list