gskrenderer.c: Use GL renderer on Windows by default
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 17 Jan 2022 06:40:23 +0000 (14:40 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 19 Jan 2022 03:56:32 +0000 (11:56 +0800)
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.

gsk/gskrenderer.c

index b782cfd49305e69fc85ff8a08034bd0afffb3c58..03aa87f512f6b6d94f4ab6b3484c20055bc7588a 100644 (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;