From a25178cde776839ec8562b8cd224e65eb4c38b7a Mon Sep 17 00:00:00 2001 From: JunsuChoi Date: Fri, 13 Mar 2026 13:02:31 +0900 Subject: [PATCH 1/2] Fix EGLNativeWindowType type compatibility with coregl update Update eglCreateWindowSurface call to properly cast tbm_surface_queue and egl_window to EGLNativeWindowType to match the updated coregl's eglplatform.h signature. --- .../shell/platform/tizen/tizen_renderer_egl.cc | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/flutter/shell/platform/tizen/tizen_renderer_egl.cc b/flutter/shell/platform/tizen/tizen_renderer_egl.cc index 258ddd0..9266055 100644 --- a/flutter/shell/platform/tizen/tizen_renderer_egl.cc +++ b/flutter/shell/platform/tizen/tizen_renderer_egl.cc @@ -94,11 +94,11 @@ bool TizenRendererEgl::CreateSurface(void* render_target, const EGLint attribs[] = {EGL_NONE}; if (render_target_display) { - auto* egl_window = - static_cast(ecore_wl2_egl_window_native_get( - static_cast(render_target))); - egl_surface_ = eglCreateWindowSurface(egl_display_, egl_config_, - egl_window, attribs); + auto egl_window = ecore_wl2_egl_window_native_get( + static_cast(render_target)); + egl_surface_ = eglCreateWindowSurface( + egl_display_, egl_config_, + reinterpret_cast(egl_window), attribs); } else { #ifdef NUI_SUPPORT Dali::NativeImageSourceQueuePtr dali_native_image_queue = @@ -106,10 +106,9 @@ bool TizenRendererEgl::CreateSurface(void* render_target, tbm_surface_queue_h tbm_surface_queue_ = Dali::AnyCast( dali_native_image_queue->GetNativeImageSourceQueue()); - auto* egl_window = - reinterpret_cast(tbm_surface_queue_); - egl_surface_ = eglCreateWindowSurface(egl_display_, egl_config_, - egl_window, attribs); + egl_surface_ = eglCreateWindowSurface( + egl_display_, egl_config_, + reinterpret_cast(tbm_surface_queue_), attribs); #endif } From 2c508a07d5e77c07a735650755ca5e4e677d6803 Mon Sep 17 00:00:00 2001 From: JunsuChoi Date: Fri, 13 Mar 2026 14:58:19 +0900 Subject: [PATCH 2/2] ++ --- flutter/shell/platform/tizen/tizen_renderer_egl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flutter/shell/platform/tizen/tizen_renderer_egl.cc b/flutter/shell/platform/tizen/tizen_renderer_egl.cc index 9266055..d618943 100644 --- a/flutter/shell/platform/tizen/tizen_renderer_egl.cc +++ b/flutter/shell/platform/tizen/tizen_renderer_egl.cc @@ -94,7 +94,7 @@ bool TizenRendererEgl::CreateSurface(void* render_target, const EGLint attribs[] = {EGL_NONE}; if (render_target_display) { - auto egl_window = ecore_wl2_egl_window_native_get( + const auto egl_window = ecore_wl2_egl_window_native_get( static_cast(render_target)); egl_surface_ = eglCreateWindowSurface( egl_display_, egl_config_,