gskrenderer.c: Use GL renderer on Windows by default

Since now we have the shaders working on Windows under GLES with libANGLE using
a 3.0+ context, drop the check to fall back to the Cairo renderer when GLES is
being used.
This commit is contained in:
Chun-wei Fan 2022-01-17 14:40:23 +08:00
parent 6fd29e6600
commit 3e9d858af1

View File

@ -597,14 +597,7 @@ get_renderer_for_backend (GdkSurface *surface)
#endif
#ifdef GDK_WINDOWING_WIN32
if (GDK_IS_WIN32_SURFACE (surface))
/* remove check for OpenGL/ES when OpenGL/ES 2.0 shader is ready */
{
GdkDisplay *display = gdk_surface_get_display (surface);
if (!(GDK_DISPLAY_DEBUG_CHECK (display, GL_GLES) ||
GDK_WIN32_DISPLAY (display)->running_on_arm64))
return GSK_TYPE_GL_RENDERER;
}
return GSK_TYPE_GL_RENDERER;
#endif
return G_TYPE_INVALID;