mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-20 23:20:36 +01:00
Fix context sharing between direct/indirect contexts
This commit is contained in:
parent
d74b0327e8
commit
43e46a654f
1 changed files with 8 additions and 0 deletions
|
|
@ -614,6 +614,9 @@ __glXDRIscreenCreateContext(__GLXscreen *baseScreen,
|
|||
else
|
||||
driShare = NULL;
|
||||
|
||||
if (baseShareContext && baseShareContext->isDirect)
|
||||
return NULL;
|
||||
|
||||
context = xalloc(sizeof *context);
|
||||
if (context == NULL)
|
||||
return NULL;
|
||||
|
|
@ -649,6 +652,11 @@ __glXDRIscreenCreateContext(__GLXscreen *baseScreen,
|
|||
hwContext,
|
||||
&context->driContext);
|
||||
|
||||
if (context->driContext.private == NULL) {
|
||||
xfree(context);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return &context->base;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue