diff options
author | Brian Paul <brianp@vmware.com> | 2011-05-19 19:31:01 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2011-05-19 21:18:33 -0600 |
commit | 1929d52fd907b4e42e31ad459dd50a1de53df26c (patch) | |
tree | dfa0997959da200e7b5d37ab7fcaf80517b2c56c | |
parent | d1cd1cc871b79cce52ccd033c53fa57e410c9a6a (diff) |
st/glx: pass major, minor, context flags, etc to XMesaCreateContext()
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/glx_api.c | 3 | ||||
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/xm_api.c | 4 | ||||
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/xm_api.h | 5 |
3 files changed, 9 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/glx/xlib/glx_api.c b/src/gallium/state_trackers/glx/xlib/glx_api.c index 2bab020652..6233fb8178 100644 --- a/src/gallium/state_trackers/glx/xlib/glx_api.c +++ b/src/gallium/state_trackers/glx/xlib/glx_api.c @@ -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; diff --git a/src/gallium/state_trackers/glx/xlib/xm_api.c b/src/gallium/state_trackers/glx/xlib/xm_api.c index 3b35cbc890..dfdc723a70 100644 --- a/src/gallium/state_trackers/glx/xlib/xm_api.c +++ b/src/gallium/state_trackers/glx/xlib/xm_api.c @@ -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; diff --git a/src/gallium/state_trackers/glx/xlib/xm_api.h b/src/gallium/state_trackers/glx/xlib/xm_api.h index 4ea42dc375..57571fe2d1 100644 --- a/src/gallium/state_trackers/glx/xlib/xm_api.h +++ b/src/gallium/state_trackers/glx/xlib/xm_api.h @@ -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); /* |