mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-28 00:40:45 +02:00
Fix context sharing between direct/indirect contexts
This commit is contained in:
parent
44f46bfb98
commit
a65d4aed06
1 changed files with 8 additions and 0 deletions
|
|
@ -598,6 +598,9 @@ __glXDRIscreenCreateContext(__GLXscreen *baseScreen,
|
|||
else
|
||||
sharePrivate = NULL;
|
||||
|
||||
if (baseShareContext && baseShareContext->isDirect)
|
||||
return NULL;
|
||||
|
||||
context = xalloc(sizeof *context);
|
||||
if (context == NULL)
|
||||
return NULL;
|
||||
|
|
@ -617,6 +620,11 @@ __glXDRIscreenCreateContext(__GLXscreen *baseScreen,
|
|||
0, /* render type */
|
||||
sharePrivate,
|
||||
&context->driContext);
|
||||
|
||||
if (!context->driContext.private) {
|
||||
xfree(context);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
context->driContext.mode = modes;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue