[gtk/ngl-is-the-new-gl] Keep accepting GSK_RENDERER=opengl
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ngl-is-the-new-gl] Keep accepting GSK_RENDERER=opengl
- Date: Thu, 7 Oct 2021 04:57:15 +0000 (UTC)
commit 4e472ae01d01fc3d319682f4f5cb94c54f6a09ea
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Oct 7 00:56:08 2021 -0400
Keep accepting GSK_RENDERER=opengl
We use that in our testsuite, lets not remove it.
gsk/gskrenderer.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gsk/gskrenderer.c b/gsk/gskrenderer.c
index 12f05817a7..7c35b051f9 100644
--- a/gsk/gskrenderer.c
+++ b/gsk/gskrenderer.c
@@ -504,7 +504,8 @@ get_renderer_for_name (const char *renderer_name)
#endif
else if (g_ascii_strcasecmp (renderer_name, "cairo") == 0)
return GSK_TYPE_CAIRO_RENDERER;
- else if (g_ascii_strcasecmp (renderer_name, "gl") == 0)
+ else if (g_ascii_strcasecmp (renderer_name, "opengl") == 0 ||
+ g_ascii_strcasecmp (renderer_name, "gl") == 0)
return GSK_TYPE_GL_RENDERER;
#ifdef GDK_RENDERING_VULKAN
else if (g_ascii_strcasecmp (renderer_name, "vulkan") == 0)
@@ -519,6 +520,7 @@ get_renderer_for_name (const char *renderer_name)
g_print ("broadway - Disabled during GTK build\n");
#endif
g_print (" cairo - Use the Cairo fallback renderer\n");
+ g_print (" opengl - Use the OpenGL renderer\n");
g_print (" gl - Use the OpenGL renderer\n");
#ifdef GDK_RENDERING_VULKAN
g_print (" vulkan - Use the Vulkan renderer\n");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]