=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: wined3d: Call glFlush() through gl_info.gl_ops.
Alexandre Julliard
julliard at winehq.org
Mon Oct 10 15:09:44 CDT 2016
Module: wine
Branch: master
Commit: 83544c4cc243b78771ba4d868de9c693d694e4b6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=83544c4cc243b78771ba4d868de9c693d694e4b6
Author: Józef Kucia <jkucia at codeweavers.com>
Date: Mon Oct 10 10:22:36 2016 +0200
wined3d: Call glFlush() through gl_info.gl_ops.
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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))
More information about the wine-cvs
mailing list