diff options
author | Brian Paul <[email protected]> | 2011-05-19 19:25:49 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-05-19 21:18:33 -0600 |
commit | 81183b1e3e6a23987817c4b29ab15bc37eae9711 (patch) | |
tree | ade3991b76904bb05c68e2e9b4e044016f6f5904 | |
parent | 7be3e507317a0e731fef91a1505f8500e8d1c050 (diff) |
st/glx: pass version, context flags, etc to create_context()
-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); } |