From 3e9d858af191bbfaec06bd71b44726031dc0d0cc Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Mon, 17 Jan 2022 14:40:23 +0800 Subject: [PATCH] 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. --- gsk/gskrenderer.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/gsk/gskrenderer.c b/gsk/gskrenderer.c index b782cfd493..03aa87f512 100644 --- a/gsk/gskrenderer.c +++ b/gsk/gskrenderer.c @@ -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;