[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-patches
Subject:    [PATCH] winex11: create glx context with the given display instead of default
From:       Miklós Máté <mtmkls () gmail ! com>
Date:       2016-07-29 20:44:53
Message-ID: 1469825093-2047-1-git-send-email-mtmkls () gmail ! com
[Download RAW message or body]

No functional change, as it's always called with gdi_display.

Signed-off-by: Miklós Máté <mtmkls@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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic