winex11: Always create direct rendering OpenGL contexts.

Indirect rendering is no longer supported nowadays.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2015-11-18 15:36:41 +09:00
parent c0de7f8641
commit ef9c0cecc5
1 changed files with 3 additions and 6 deletions

View File

@ -1264,18 +1264,15 @@ static GLXContext create_glxcontext(Display *display, struct wgl_context *contex
{ {
GLXContext ctx; 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->gl3_context)
{ {
if(context->numAttribs) 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 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) 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 */ else /* Create a GLX Context for a pbuffer */
ctx = pglXCreateNewContext(gdi_display, context->fmt->fbconfig, context->fmt->render_type, shareList, TRUE); ctx = pglXCreateNewContext(gdi_display, context->fmt->fbconfig, context->fmt->render_type, shareList, TRUE);