diff options
Diffstat (limited to 'src/gallium/state_trackers/glx/xlib/glx_api.c')
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/glx_api.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/glx/xlib/glx_api.c b/src/gallium/state_trackers/glx/xlib/glx_api.c index 7e2b6d201a0..eae93918acd 100644 --- a/src/gallium/state_trackers/glx/xlib/glx_api.c +++ b/src/gallium/state_trackers/glx/xlib/glx_api.c @@ -1023,7 +1023,9 @@ glXChooseVisual( Display *dpy, int screen, int *list ) */ static GLXContext create_context(Display *dpy, XMesaVisual xmvis, - XMesaContext shareCtx, Bool direct) + XMesaContext shareCtx, Bool direct, + unsigned major, unsigned minor, + unsigned profileMask, unsigned contextFlags) { GLXContext glxCtx; @@ -1071,7 +1073,8 @@ glXCreateContext( Display *dpy, XVisualInfo *visinfo, return create_context(dpy, xmvis, shareCtx ? shareCtx->xmesaContext : NULL, - direct); + direct, + 1, 0, GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB, 0x0); } @@ -2105,7 +2108,8 @@ glXCreateNewContext( Display *dpy, GLXFBConfig config, return create_context(dpy, xmvis, shareCtx ? shareCtx->xmesaContext : NULL, - direct); + direct, + 1, 0, GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB, 0x0); } @@ -2319,7 +2323,8 @@ glXCreateContextWithConfigSGIX(Display *dpy, GLXFBConfigSGIX config, return create_context(dpy, xmvis, shareCtx ? shareCtx->xmesaContext : NULL, - direct); + direct, + 1, 0, GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB, 0x0); } |