mirror of
https://github.com/raysan5/raylib.git
synced 2026-04-25 00:03:59 -04:00
Update rcore_drm.c
This commit is contained in:
@ -1426,7 +1426,7 @@ int InitPlatform(void)
|
|||||||
if (eglGetPlatformDisplayEXT != NULL) platform.device = eglGetPlatformDisplayEXT(EGL_PLATFORM_GBM_KHR, platform.gbmDevice, NULL);
|
if (eglGetPlatformDisplayEXT != NULL) platform.device = eglGetPlatformDisplayEXT(EGL_PLATFORM_GBM_KHR, platform.gbmDevice, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
// In case extension not found or display could not be retrieved, try useing legacy version
|
// In case extension not found or display could not be retrieved, try using legacy version
|
||||||
if (platform.device == EGL_NO_DISPLAY) platform.device = eglGetDisplay((EGLNativeDisplayType)platform.gbmDevice);
|
if (platform.device == EGL_NO_DISPLAY) platform.device = eglGetDisplay((EGLNativeDisplayType)platform.gbmDevice);
|
||||||
#endif
|
#endif
|
||||||
if (platform.device == EGL_NO_DISPLAY)
|
if (platform.device == EGL_NO_DISPLAY)
|
||||||
|
|||||||
Reference in New Issue
Block a user