diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-04-13 19:22:21 +0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2023-04-21 09:28:51 +0200 |
commit | 3f29f65396f3be7cdfc4899075aef79d2f61215c (patch) | |
tree | a25587c28ac03a9a63c4cf345741b6b35bed7012 /gdk | |
parent | d55d3fc3fe655ecc6f52cedd428beca9e62f1d5d (diff) | |
download | gtk+-3f29f65396f3be7cdfc4899075aef79d2f61215c.tar.gz |
gdk: use GLES when on win32/ANGLE
When using GDK_DEBUG=gl-egl, we end up using GL, but that is not well supported:
Creating EGL context version 3.0 (debug:no, forward:no, legacy:yes, es:no)
Created EGL context[0000000000000004]
OpenGL version: 0.0 (legacy)
* GLSL version: (NULL)
* Max texture size: -1059701680
* Extensions checked:
- GL_KHR_debug: no
- GL_EXT_unpack_subimage: yes
- OES_vertex_half_float: no
** (gtk4-demo.exe:14324): WARNING **: 19:16:41.468: Compile failure in
vertex shader:
ERROR: 0:7: 'gl_Position' : undeclared identifier
---8<---
Use GLES when EGL implementation is ANGLE.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/win32/gdkdisplay-win32.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk/win32/gdkdisplay-win32.c b/gdk/win32/gdkdisplay-win32.c index 5c53f247c2..d07a1c09cb 100644 --- a/gdk/win32/gdkdisplay-win32.c +++ b/gdk/win32/gdkdisplay-win32.c @@ -1207,6 +1207,7 @@ gdk_win32_display_init_gl (GdkDisplay *display, { return g_object_new (GDK_TYPE_WIN32_GL_CONTEXT_EGL, "display", display, + "allowed-apis", GDK_GL_API_GLES, NULL); } else |