st/glx: pass major, minor, context flags, etc to XMesaCreateContext()
authorBrian Paul <brianp@vmware.com>
Fri, 20 May 2011 01:31:01 +0000 (19:31 -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
src/gallium/state_trackers/glx/xlib/xm_api.c
src/gallium/state_trackers/glx/xlib/xm_api.h

index 2bab020652d5ffbb1153ef401aa009ae91a45858..6233fb817811cf797e8742256b4e1cfaa92b87e5 100644 (file)
@@ -1041,7 +1041,8 @@ create_context(Display *dpy, XMesaVisual xmvis,
    XMesaGarbageCollect();
 #endif
 
-   glxCtx->xmesaContext = XMesaCreateContext(xmvis, shareCtx);
+   glxCtx->xmesaContext = XMesaCreateContext(xmvis, shareCtx, major, minor,
+                                             profileMask, contextFlags);
    if (!glxCtx->xmesaContext) {
       free(glxCtx);
       return NULL;
index 3b35cbc890c9bef515d3541bd81b7805038fdc43..dfdc723a705223849047e3cc2a658921e164a68a 100644 (file)
@@ -853,7 +853,9 @@ xmesa_init( Display *display )
  * \return an XMesaContext or NULL if error.
  */
 PUBLIC
-XMesaContext XMesaCreateContext( XMesaVisual v, XMesaContext share_list )
+XMesaContext XMesaCreateContext( XMesaVisual v, XMesaContext share_list,
+                                 GLuint major, GLuint minor,
+                                 GLuint profileMask, GLuint contextFlags)
 {
    XMesaDisplay xmdpy = xmesa_init_display(v->display);
    struct st_context_attribs attribs;
index 4ea42dc37559c74e6c4d6553dbc558578e75fac2..57571fe2d137f4a40340e4400749df886c084b61 100644 (file)
@@ -140,7 +140,10 @@ extern void XMesaDestroyVisual( XMesaVisual v );
  * Return:  an XMesaContext or NULL if error.
  */
 extern XMesaContext XMesaCreateContext( XMesaVisual v,
-                                       XMesaContext share_list );
+                                       XMesaContext share_list,
+                                        GLuint major, GLuint minor,
+                                        GLuint profileMask,
+                                        GLuint contextFlags);
 
 
 /*