1 From 29d93f244f5483062f163c366d31f6a1da5be05e Mon Sep 17 00:00:00 2001
2 From: Joel Winarske <joel.winarske@gmail.com>
3 Date: Tue, 6 Jun 2023 14:39:17 -0700
4 Subject: [PATCH] The ivi-homescreen is using eglGetPlatformDisplay directly
5 that possible to use in EGL version is 1.5 or greater. On the other hand
6 R-CarH3/M3 is not supporting EGL version is 1.5, only a EGL version is 1.4.
7 This situation cause build error in R-Car H3/M3.
9 This patch fix that build error.
11 Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
13 shell/view/compositor_surface.cc | 3 +--
14 1 file changed, 1 insertion(+), 2 deletions(-)
16 diff --git a/shell/view/compositor_surface.cc b/shell/view/compositor_surface.cc
17 index 51b13c5..7991c3f 100644
18 --- a/shell/view/compositor_surface.cc
19 +++ b/shell/view/compositor_surface.cc
20 @@ -57,8 +57,7 @@ CompositorSurface::CompositorSurface(
21 auto parent_surface = window->GetBaseSurface();
23 if (type == CompositorSurface::egl) {
24 - m_wl.egl_display = eglGetPlatformDisplay(EGL_PLATFORM_WAYLAND_KHR,
25 - display->GetDisplay(), nullptr);
26 + m_wl.egl_display = eglGetDisplay((NativeDisplayType)display->GetDisplay());
27 m_wl.egl_window = wl_egl_window_create(m_wl.surface, width, height);
28 assert(m_wl.egl_display);
29 assert(m_wl.egl_window);