Module: wine Branch: master Commit: ef9c0cecc548f8a771b97d3d8b29f144254cfee8 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ef9c0cecc548f8a771b97d3d8b...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Nov 18 15:36:41 2015 +0900
winex11: Always create direct rendering OpenGL contexts.
Indirect rendering is no longer supported nowadays.
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/winex11.drv/opengl.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c index 99befde..03a958e 100644 --- a/dlls/winex11.drv/opengl.c +++ b/dlls/winex11.drv/opengl.c @@ -1264,18 +1264,15 @@ static GLXContext create_glxcontext(Display *display, struct wgl_context *contex { GLXContext ctx;
- /* We use indirect rendering for rendering to bitmaps. See get_formats for a comment about this. */ - BOOL indirect = !(context->fmt->dwFlags & PFD_DRAW_TO_BITMAP); - if(context->gl3_context) { if(context->numAttribs) - ctx = pglXCreateContextAttribsARB(gdi_display, context->fmt->fbconfig, shareList, indirect, context->attribList); + ctx = pglXCreateContextAttribsARB(gdi_display, context->fmt->fbconfig, shareList, GL_TRUE, context->attribList); else - ctx = pglXCreateContextAttribsARB(gdi_display, context->fmt->fbconfig, shareList, indirect, NULL); + ctx = pglXCreateContextAttribsARB(gdi_display, context->fmt->fbconfig, shareList, GL_TRUE, NULL); } else if(context->vis) - ctx = pglXCreateContext(gdi_display, context->vis, shareList, indirect); + ctx = pglXCreateContext(gdi_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);