Skip to content

Commit b889dd2

Browse files
committedAug 23, 2022
drm: Use NativeDisplayType instead of Display
The latter does not exist if X11 headers are not being used, and they should definitely not be used for the DRM/KMS platform plug-in.
1 parent 574b6d4 commit b889dd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎platform/drm/cog-platform-drm.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ init_egl (void)
669669
if (s_eglGetPlatformDisplay)
670670
egl_data.display = s_eglGetPlatformDisplay (EGL_PLATFORM_GBM_KHR, gbm_data.device, NULL);
671671
else
672-
egl_data.display = eglGetDisplay((Display *) gbm_data.device);
672+
egl_data.display = eglGetDisplay((NativeDisplayType *) gbm_data.device);
673673

674674
if (!egl_data.display) {
675675
clear_egl ();

0 commit comments

Comments
 (0)
Please sign in to comment.