mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-12 11:50:21 +00:00
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:
parent
6fd29e6600
commit
3e9d858af1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user