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,
|
(*screen->dri2->createNewContext)(screen->driScreen,
|
||||||
config->driConfig,
|
config->driConfig,
|
||||||
driShare, context);
|
driShare, context);
|
||||||
|
if (context->driContext == NULL) {
|
||||||
|
xfree(context);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return &context->base;
|
return &context->base;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user