Fix DRM/EGL segfault on some NVIDIA proprietary drivers
This commit is contained in:
parent
d631a5a466
commit
cba8afa2ca
1 changed files with 3 additions and 2 deletions
|
|
@ -1446,7 +1446,8 @@ int InitPlatform(void)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!eglChooseConfig(platform.device, NULL, NULL, 0, &numConfigs))
|
// Providing `framebufferAttribs` is not logically necessary, but it may prevent segfaults on some nvidia drivers
|
||||||
|
if (!eglChooseConfig(platform.device, framebufferAttribs, NULL, 0, &numConfigs))
|
||||||
{
|
{
|
||||||
TRACELOG(LOG_WARNING, "DISPLAY: Failed to get EGL config count: 0x%x", eglGetError());
|
TRACELOG(LOG_WARNING, "DISPLAY: Failed to get EGL config count: 0x%x", eglGetError());
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue