[gtk/wip.win32.fixes: 1/3] gsk/gl/resources/*.glsl: Add GLSL 300 ES items
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip.win32.fixes: 1/3] gsk/gl/resources/*.glsl: Add GLSL 300 ES items
- Date: Tue, 23 Nov 2021 10:31:19 +0000 (UTC)
commit e7d12aeca36e14c111261627b6d4396be5001af7
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Tue Nov 23 12:09:50 2021 +0800
gsk/gl/resources/*.glsl: Add GLSL 300 ES items
This attempts to make the shaders ready for use with GLSL 300 ES, which
is necessary for libANGLE support, for EGL/GLES support on Windows.
gsk/gl/resources/preamble.glsl | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/gsk/gl/resources/preamble.glsl b/gsk/gl/resources/preamble.glsl
index 8bc007ba67..9ca94e8b7c 100644
--- a/gsk/gl/resources/preamble.glsl
+++ b/gsk/gl/resources/preamble.glsl
@@ -10,7 +10,11 @@ precision highp float;
#else
#define _OUT_ out
#define _IN_ in
+#if defined (GSK_GLES3)
+#define _NOPERSPECTIVE_
+#else
#define _NOPERSPECTIVE_ noperspective
+#endif
#define _GSK_ROUNDED_RECT_UNIFORM_ GskRoundedRect
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]