mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-23 06:43:07 +00:00
glx: fail if we can't init a screen
Some checks are pending
Some checks are pending
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> Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
5f3971e42a
commit
412da8f50a
1 changed files with 2 additions and 2 deletions
|
|
@ -317,7 +317,7 @@ __glXScreenInit(__GLXscreen * pGlxScreen, ScreenPtr pScreen)
|
|||
return;
|
||||
|
||||
pGlxScreen->pScreen = pScreen;
|
||||
pGlxScreen->GLextensions = strdup(GLServerExtensions);
|
||||
pGlxScreen->GLextensions = XNFstrdup(GLServerExtensions);
|
||||
pGlxScreen->GLXextensions = NULL;
|
||||
|
||||
dixScreenHookClose(pScreen, glxCloseScreen);
|
||||
|
|
@ -331,7 +331,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…
Reference in a new issue