st/glx: pass version, context flags, etc to create_context()
authorBrian Paul <brianp@vmware.com>
Fri, 20 May 2011 01:25:49 +0000 (19:25 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 20 May 2011 03:18:33 +0000 (21:18 -0600)
src/gallium/state_trackers/glx/xlib/glx_api.c

index 7e2b6d201a046189197d6091d592f89250bbafe0..eae93918acd2227272da08e9b2591053496d5de4 100644 (file)
@@ -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);
 }