[PATCH 2/7] wined3d: Flush the GL context before switching away from it.
Matteo Bruni
mbruni at codeweavers.com
Fri Nov 27 13:39:31 CST 2015
We might end up not using the old context anymore after that and the GL
implementation is allowed to delay executing commands indefinitely if we
don't flush.
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
dlls/wined3d/context.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 0e8b32b..5eeccab 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -1129,6 +1129,11 @@ BOOL context_set_current(struct wined3d_context *ctx)
}
else
{
+ if (wglGetCurrentContext())
+ {
+ TRACE("Flushing context %p before switching to %p.\n", old, ctx);
+ glFlush();
+ }
old->current = 0;
}
}
--
2.4.10
More information about the wine-patches
mailing list