dri2: fail at context creation if driver fail to create it's context
This commit is contained in:
parent
ff60e592f0
commit
084ae9e388
|
@ -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 New Issue
Block a user