GDK-Win32: Port EGL code to newer common GDK code
Hi,
This attempts to update the GDK-Win32 backend by doing the following:
- Use
HAVE_EGL
instead ofGDK_WIN32_ENABLE_EGL
, to clean things up and to make things more uniform. - Update the EGL code in GDK-Win32 so that it is more like the X11 and Wayland backends so that we use the common code in GDK to initialize EGL on Windows. Since as before, EGL does not currently work on Windows due to shader issues (I am no good at shaders at all, the code crashes with
gdk_gl_context_make_current()
failures, and running the debugger indicates that the shaders failed to compile on EGL/libANGLE), this code is intentionally disabled via#if 0
for now. The EGL context does get realized successfully though.
With blessings, thank you!