Re: [PATCH] ui/gtk-egl: Check EGLSurface before doing scanout

2023-10-16 Thread Marc-André Lureau
Hi On Fri, Oct 13, 2023 at 7:18 PM Antonio Caggiano wrote: > > The first time gd_egl_scanout_texture() is called, there's a possibility > that the GTK drawing area might not be realized yet, in which case its > associated GdkWindow is NULL. This means gd_egl_init() was also skipped > and the EGLC

[PATCH] ui/gtk-egl: Check EGLSurface before doing scanout

2023-10-13 Thread Antonio Caggiano
The first time gd_egl_scanout_texture() is called, there's a possibility that the GTK drawing area might not be realized yet, in which case its associated GdkWindow is NULL. This means gd_egl_init() was also skipped and the EGLContext and EGLSurface stored in the VirtualGfxConsole are not valid yet