mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-21 01:40:04 +01:00
Fix context sharing between direct/indirect contexts
This commit is contained in:
parent
dcc3de91d2
commit
817b20030b
1 changed files with 8 additions and 1 deletions
|
|
@ -472,6 +472,9 @@ __glXDRIscreenCreateContext(__GLXscreen *baseScreen,
|
||||||
else
|
else
|
||||||
sharePrivate = NULL;
|
sharePrivate = NULL;
|
||||||
|
|
||||||
|
if (baseShareContext && baseShareContext->isDirect)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
context = xalloc(sizeof *context);
|
context = xalloc(sizeof *context);
|
||||||
if (context == NULL)
|
if (context == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
@ -490,6 +493,11 @@ __glXDRIscreenCreateContext(__GLXscreen *baseScreen,
|
||||||
0, /* render type */
|
0, /* render type */
|
||||||
sharePrivate,
|
sharePrivate,
|
||||||
&context->driContext);
|
&context->driContext);
|
||||||
|
|
||||||
|
if (!context->driContext.private) {
|
||||||
|
xfree(context);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
context->driContext.mode = modes;
|
context->driContext.mode = modes;
|
||||||
|
|
||||||
|
|
@ -815,7 +823,6 @@ static Bool
|
||||||
glxDRIEnterVT (int index, int flags)
|
glxDRIEnterVT (int index, int flags)
|
||||||
{
|
{
|
||||||
__GLXDRIscreen *screen = (__GLXDRIscreen *) __glXgetActiveScreen(index);
|
__GLXDRIscreen *screen = (__GLXDRIscreen *) __glXgetActiveScreen(index);
|
||||||
Bool ret;
|
|
||||||
|
|
||||||
LogMessage(X_INFO, "AIGLX: Resuming AIGLX clients after VT switch\n");
|
LogMessage(X_INFO, "AIGLX: Resuming AIGLX clients after VT switch\n");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue