diff options
Diffstat (limited to 'glx/glxdri2.c')
-rw-r--r-- | glx/glxdri2.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/glx/glxdri2.c b/glx/glxdri2.c index 2c542bfdf..2e24b56e6 100644 --- a/glx/glxdri2.c +++ b/glx/glxdri2.c @@ -441,6 +441,7 @@ create_driver_context(__GLXDRIcontext * context, int *error) { context->driContext = NULL; + const __DRIconfig *driConfig = config ? config->driConfig : NULL; if (screen->dri2->base.version >= 3) { uint32_t ctx_attribs[4 * 2]; @@ -483,10 +484,8 @@ create_driver_context(__GLXDRIcontext * context, } context->driContext = - (*screen->dri2->createContextAttribs)(screen->driScreen, - api, - config->driConfig, - driShare, + (*screen->dri2->createContextAttribs)(screen->driScreen, api, + driConfig, driShare, num_ctx_attribs / 2, ctx_attribs, &dri_err, @@ -522,8 +521,7 @@ create_driver_context(__GLXDRIcontext * context, } context->driContext = - (*screen->dri2->createNewContext) (screen->driScreen, - config->driConfig, + (*screen->dri2->createNewContext) (screen->driScreen, driConfig, driShare, context); } @@ -831,6 +829,9 @@ initializeExtensions(__GLXscreen * screen) __glXEnableExtension(screen->glx_enable_bits, "GLX_MESA_copy_sub_buffer"); LogMessage(X_INFO, "AIGLX: enabled GLX_MESA_copy_sub_buffer\n"); + __glXEnableExtension(screen->glx_enable_bits, "GLX_EXT_no_config_context"); + LogMessage(X_INFO, "AIGLX: enabled GLX_EXT_no_config_context\n"); + if (dri->dri2->base.version >= 3) { __glXEnableExtension(screen->glx_enable_bits, "GLX_ARB_create_context"); |