summaryrefslogtreecommitdiff
path: root/gdk/gdk.c
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2021-07-14 12:28:07 +0800
committerBenjamin Otte <otte@redhat.com>2021-07-22 16:28:16 +0200
commit969b3257a7d6042ef0087b7586d4457000f0374c (patch)
tree84b1dc1ca8cae134e18d2326946557a53df440e4 /gdk/gdk.c
parent65c6af31e11446a53962219845848a9d5773b2f3 (diff)
downloadgtk+-969b3257a7d6042ef0087b7586d4457000f0374c.tar.gz
GDK: Add debug option for WGL usage
This way, one can force using WGL on Windows even if EGL support was enabled. Also update the help text for gl-egl as it will apply for Windows, albeit a bit later.
Diffstat (limited to 'gdk/gdk.c')
-rw-r--r--gdk/gdk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdk/gdk.c b/gdk/gdk.c
index c6b5b7b8ce..64823434da 100644
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -127,8 +127,9 @@ static const GdkDebugKey gdk_debug_keys[] = {
{ "gl-legacy", GDK_DEBUG_GL_LEGACY, "Use a legacy OpenGL context" },
{ "gl-gles", GDK_DEBUG_GL_GLES, "Use a GLES OpenGL context" },
{ "gl-debug", GDK_DEBUG_GL_DEBUG, "Insert debugging information in OpenGL" },
- { "gl-egl", GDK_DEBUG_GL_EGL, "Use EGL on X11" },
+ { "gl-egl", GDK_DEBUG_GL_EGL, "Use EGL on X11 or Windows" },
{ "gl-glx", GDK_DEBUG_GL_GLX, "Use GLX on X11" },
+ { "gl-wgl", GDK_DEBUG_GL_WGL, "Use WGL on Windows" },
{ "vulkan-disable", GDK_DEBUG_VULKAN_DISABLE, "Disable Vulkan support" },
{ "vulkan-validate", GDK_DEBUG_VULKAN_VALIDATE, "Load the Vulkan validation layer" },
{ "default-settings",GDK_DEBUG_DEFAULT_SETTINGS, "Force default values for xsettings" },