diff --git a/flutter/shell/platform/tizen/tizen_renderer_egl.cc b/flutter/shell/platform/tizen/tizen_renderer_egl.cc index 258ddd0..d618943 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); + const 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 }