mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
652ab1ac72
For libANGLE to work with our shaders, we must use "300 es" for the #version directive in our shaders, as well as using the non-legacy/ non-GLES codepath in the shaders. In order to check whether we are using the GLSL 300 es shaders, we check whether we are using a GLES 3.0+ context. As a result, make ->glsl_version a const char* and make sure the existing shader version macros are defined apprpriately, and add a new macro for the "300 es" shader version string. This will allow the gtk4 programs to run under Windows using EGL via libANGLE. Some of the GL demos won't work for now, but at least this makes things a lot better for using GL-accelerated graphics under Windows for those that want to or need to use libANGLE (such as those with graphics drivers that aren't capable of our Desktop (W)GL requirements in GTK. |
||
---|---|---|
.. | ||
broadway | ||
gl | ||
vulkan | ||
gen-gsk-gresources-xml.py | ||
gsk-autocleanup.h | ||
gsk.h | ||
gskcairoblur.c | ||
gskcairoblurprivate.h | ||
gskcairorenderer.c | ||
gskcairorenderer.h | ||
gskdebug.c | ||
gskdebugprivate.h | ||
gskdiff.c | ||
gskdiffprivate.h | ||
gskenums.h | ||
gskenumtypes.c.template | ||
gskenumtypes.h.template | ||
gskglshader.c | ||
gskglshader.h | ||
gskglshaderprivate.h | ||
gskprivate.c | ||
gskprivate.h | ||
gskprofiler.c | ||
gskprofilerprivate.h | ||
gskrenderer.c | ||
gskrenderer.h | ||
gskrendererprivate.h | ||
gskrendernode.c | ||
gskrendernode.h | ||
gskrendernodeimpl.c | ||
gskrendernodeparser.c | ||
gskrendernodeparserprivate.h | ||
gskrendernodeprivate.h | ||
gskroundedrect.c | ||
gskroundedrect.h | ||
gskroundedrectprivate.h | ||
gsktransform.c | ||
gsktransform.h | ||
gsktransformprivate.h | ||
gsktypes.h | ||
meson.build |