@wenjieshen We might need to upgrade to SDL3 first. Until that, we could pass nullptr... ``` SDL_EGLDisplay display = SDL_EGL_GetCurrentDisplay(); // sdl is running on egl. if (display) { //get surface } ``` https://wiki.libsdl.org/SDL3/SDL_EGL_GetCurrentDisplay https://wiki.libsdl.org/SDL3/SDL_EGL_GetWindowSurface _Originally posted by @hermet in https://github.com/thorvg/thorvg.example/issues/10#issuecomment-3719733605_