[PATCH 2/5] wined3d: Always end transform feedback on SO buffer destruction.
Zebediah Figura
zfigura at codeweavers.com
Sun Oct 17 15:08:31 CDT 2021
From: Matteo Bruni <mbruni at codeweavers.com>
The buffer might not be bound anymore at the d3d level but that
doesn't mean it's not still bound in GL.
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
dlls/wined3d/buffer.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/wined3d/buffer.c b/dlls/wined3d/buffer.c
index d259b64bfaf..b994d625f12 100644
--- a/dlls/wined3d/buffer.c
+++ b/dlls/wined3d/buffer.c
@@ -145,8 +145,7 @@ static void wined3d_buffer_gl_destroy_buffer_object(struct wined3d_buffer_gl *bu
if (!buffer_gl->b.buffer_object)
return;
- if (context_gl->c.transform_feedback_active && resource->bind_count
- && resource->bind_flags & WINED3D_BIND_STREAM_OUTPUT)
+ if (context_gl->c.transform_feedback_active && resource->bind_flags & WINED3D_BIND_STREAM_OUTPUT)
{
/* We have to make sure that transform feedback is not active
* when deleting a potentially bound transform feedback buffer.
--
2.33.0
More information about the wine-devel
mailing list