st/glx: pass major, minor, context flags, etc to XMesaCreateContext()
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user