[PATCH 4/5] wined3d: Call glFlush() through gl_info.gl_ops.
Józef Kucia
jkucia at codeweavers.com
Mon Oct 10 03:22:36 CDT 2016
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
dlls/wined3d/context.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 98516f8..25a3ac6 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -1296,8 +1296,9 @@ BOOL context_set_current(struct wined3d_context *ctx)
{
if (wglGetCurrentContext())
{
+ const struct wined3d_gl_info *gl_info = old->gl_info;
TRACE("Flushing context %p before switching to %p.\n", old, ctx);
- glFlush();
+ gl_info->gl_ops.gl.p_glFlush();
}
old->current = 0;
}
@@ -1316,7 +1317,7 @@ BOOL context_set_current(struct wined3d_context *ctx)
return FALSE;
ctx->current = 1;
}
- else if(wglGetCurrentContext())
+ else if (wglGetCurrentContext())
{
TRACE("Clearing current D3D context.\n");
if (!wglMakeCurrent(NULL, NULL))
--
2.7.3
More information about the wine-patches
mailing list