mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 14:50:11 +01:00
st/glx: pass major, minor, context flags, etc to XMesaCreateContext()
This commit is contained in:
parent
d1cd1cc871
commit
1929d52fd9
3 changed files with 9 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue