Commit 97b836a9 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

wined3d: Destroy objects belonging to wined3d_device_gl.completed_fence_id.

Not just those belonging to earlier completed fences. completed_fence_id names the most recent fence to be completed. In essence, this fixes an off-by-one error. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53217
parent a1b3a798
......@@ -2726,7 +2726,7 @@ static void wined3d_context_gl_destroy_allocator_block(struct wined3d_context_gl
struct wined3d_device_gl *device_gl = wined3d_device_gl(context_gl->c.device);
struct wined3d_retired_block_gl *r;
if (device_gl->completed_fence_id > fence_id)
if (device_gl->completed_fence_id >= fence_id)
{
wined3d_device_gl_free_memory(device_gl, block);
TRACE("Freed block %p.\n", block);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment