Skip to content

Commit

Permalink
Fix build error at EGL1.4 support platform
Browse files Browse the repository at this point in the history
The ivi-homescreen is using eglGetPlatformDisplay directly
that possible to use in EGL version is 1.5 or greater.
On the other hand R-CarH3/M3 is not supporting EGL version
is 1.5, only a EGL version is 1.4.  This situation cause
build error in R-Car H3/M3.

This patch fix that build error.

Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
  • Loading branch information
AGLExport committed Jun 4, 2023
1 parent 4dbc64f commit 2f3a2a1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions shell/view/compositor_surface.cc
Expand Up @@ -58,8 +58,7 @@ CompositorSurface::CompositorSurface(
auto parent_surface = window->GetBaseSurface();

if (type == CompositorSurface::egl) {
m_wl.egl_display = eglGetPlatformDisplay(EGL_PLATFORM_WAYLAND_KHR,
display->GetDisplay(), nullptr);
m_wl.egl_display = eglGetDisplay((NativeDisplayType)display->GetDisplay());
m_wl.egl_window = wl_egl_window_create(m_wl.surface, width, height);
assert(m_wl.egl_display);
assert(m_wl.egl_window);
Expand Down

0 comments on commit 2f3a2a1

Please sign in to comment.