mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-16 03:48:06 +02:00
glx: fail if we can't init a screen
Not worth figuring out the perfect cleanup path here Co-Authored-by: Claude Code <noreply@anthropic.com> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2184>
This commit is contained in:
parent
5d24ac3e6d
commit
6ae0869a40
1 changed files with 2 additions and 2 deletions
|
|
@ -326,7 +326,7 @@ __glXScreenInit(__GLXscreen * pGlxScreen, ScreenPtr pScreen)
|
|||
return;
|
||||
|
||||
pGlxScreen->pScreen = pScreen;
|
||||
pGlxScreen->GLextensions = strdup(GLServerExtensions);
|
||||
pGlxScreen->GLextensions = XNFstrdup(GLServerExtensions);
|
||||
pGlxScreen->GLXextensions = NULL;
|
||||
|
||||
pGlxScreen->CloseScreen = pScreen->CloseScreen;
|
||||
|
|
@ -341,7 +341,7 @@ __glXScreenInit(__GLXscreen * pGlxScreen, ScreenPtr pScreen)
|
|||
pGlxScreen->numFBConfigs = i;
|
||||
|
||||
pGlxScreen->visuals =
|
||||
calloc(pGlxScreen->numFBConfigs, sizeof(__GLXconfig *));
|
||||
XNFcallocarray(pGlxScreen->numFBConfigs, sizeof(__GLXconfig *));
|
||||
|
||||
/* First, try to choose featureful FBconfigs for the existing X visuals.
|
||||
* Note that if multiple X visuals end up with the same FBconfig being
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue