[gtk/gtk4-win32-egl: 25/28] gsk/gl/resources/*.glsl: Add GLSL 300 ES items




commit 6aec7632663ffecc264a48e07f161cf6ad1efb17
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 | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/gsk/gl/resources/preamble.glsl b/gsk/gl/resources/preamble.glsl
index 5f5d2b780a..6dac9d1aa5 100644
--- a/gsk/gl/resources/preamble.glsl
+++ b/gsk/gl/resources/preamble.glsl
@@ -9,6 +9,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]