[gtk/master.win32: 3/5] gskrenderer.c: Default to the GL renderer on Windows too
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/master.win32: 3/5] gskrenderer.c: Default to the GL renderer on Windows too
- Date: Fri, 31 Jul 2020 10:57:15 +0000 (UTC)
commit 3a6910139049a6d6ec97ed5a3bbbb15201219f8f
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Fri Jul 31 18:44:10 2020 +0800
gskrenderer.c: Default to the GL renderer on Windows too
Since we have now made the Win32 GL contexts share the global context as
the other backends have, we are more ready to use the GL renderer by
default on Windows as well.
gsk/gskrenderer.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/gsk/gskrenderer.c b/gsk/gskrenderer.c
index 5f4b1deeb8..a8a6dc19f8 100644
--- a/gsk/gskrenderer.c
+++ b/gsk/gskrenderer.c
@@ -562,6 +562,10 @@ get_renderer_for_backend (GdkSurface *surface)
if (GDK_IS_MACOS_SURFACE (surface))
return GSK_TYPE_GL_RENDERER;
#endif
+#ifdef GDK_WINDOWING_WIN32
+ if (GDK_IS_WIN32_SURFACE (surface))
+ return GSK_TYPE_GL_RENDERER;
+#endif
return G_TYPE_INVALID;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]