wined3d: Acquire a context for the front buffer in swapchain_gl_present().
Since context_acquire() doesn't take the resource location into account, it
may consider the back-buffer to be offscreen, and return an already active
context for a different swapchain. This fixes a regression introduced by
commit 64d41b3dec
.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0b66af673e
commit
57d158622f
|
@ -434,7 +434,7 @@ static void swapchain_gl_present(struct wined3d_swapchain *swapchain,
|
|||
struct wined3d_context *context;
|
||||
BOOL render_to_fbo;
|
||||
|
||||
context = context_acquire(swapchain->device, back_buffer, 0);
|
||||
context = context_acquire(swapchain->device, swapchain->front_buffer, 0);
|
||||
context_gl = wined3d_context_gl(context);
|
||||
if (!context_gl->valid)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue