[PATCH] winex11: create glx context with the given display instead of default
Miklós Máté
mtmkls at gmail.com
Fri Jul 29 15:44:53 CDT 2016
No functional change, as it's always called with gdi_display.
Signed-off-by: Miklós Máté <mtmkls at gmail.com>
---
dlls/winex11.drv/opengl.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index 45b5fc4..663c5db 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -1294,14 +1294,14 @@ static GLXContext create_glxcontext(Display *display, struct wgl_context *contex
if(context->gl3_context)
{
if(context->numAttribs)
- ctx = pglXCreateContextAttribsARB(gdi_display, context->fmt->fbconfig, shareList, GL_TRUE, context->attribList);
+ ctx = pglXCreateContextAttribsARB(display, context->fmt->fbconfig, shareList, GL_TRUE, context->attribList);
else
- ctx = pglXCreateContextAttribsARB(gdi_display, context->fmt->fbconfig, shareList, GL_TRUE, NULL);
+ ctx = pglXCreateContextAttribsARB(display, context->fmt->fbconfig, shareList, GL_TRUE, NULL);
}
else if(context->vis)
- ctx = pglXCreateContext(gdi_display, context->vis, shareList, GL_TRUE);
+ ctx = pglXCreateContext(display, context->vis, shareList, GL_TRUE);
else /* Create a GLX Context for a pbuffer */
- ctx = pglXCreateNewContext(gdi_display, context->fmt->fbconfig, context->fmt->render_type, shareList, TRUE);
+ ctx = pglXCreateNewContext(display, context->fmt->fbconfig, context->fmt->render_type, shareList, TRUE);
return ctx;
}
--
2.8.1
More information about the wine-patches
mailing list