mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-28 02:21:08 +00:00
dri2: fail at context creation if driver fail to create it's context
This commit is contained in:
parent
ff60e592f0
commit
084ae9e388
1 changed files with 4 additions and 0 deletions
|
|
@ -303,6 +303,10 @@ __glXDRIscreenCreateContext(__GLXscreen *baseScreen,
|
|||
(*screen->dri2->createNewContext)(screen->driScreen,
|
||||
config->driConfig,
|
||||
driShare, context);
|
||||
if (context->driContext == NULL) {
|
||||
xfree(context);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return &context->base;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue