From 81183b1e3e6a23987817c4b29ab15bc37eae9711 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 19 May 2011 19:25:49 -0600 Subject: [PATCH] st/glx: pass version, context flags, etc to create_context() --- src/gallium/state_trackers/glx/xlib/glx_api.c | 13 +++++++++---- 1 file 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); } -- 2.30.2