[Spice-devel] [spice-gtk PATCH v1] EGL: Update shader version to 330

Lukas Venhoda lvenhoda at redhat.com
Mon Jul 18 08:44:50 UTC 2016


Since spice-widget-egl already requires Opengl 3.3,
change shader version from 130 (OGL3.0) to 330 (OGL3.3)

This change enables more advanced features in OpenGL shaders.
---
 src/spice-widget-egl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/spice-widget-egl.c b/src/spice-widget-egl.c
index 0698af3..2b34271 100644
--- a/src/spice-widget-egl.c
+++ b/src/spice-widget-egl.c
@@ -37,7 +37,7 @@
 
 static const char *spice_egl_vertex_src =       \
 "                                               \
-  #version 130\n                                \
+  #version 330\n                                \
                                                 \
   in vec4 position;                             \
   in vec2 texcoords;                            \
@@ -53,7 +53,7 @@ static const char *spice_egl_vertex_src =       \
 
 static const char *spice_egl_fragment_src =     \
 "                                               \
-  #version 130\n                                \
+  #version 330\n                                \
                                                 \
   in vec2 tcoords;                              \
   out vec4 fragmentColor;                       \
-- 
2.7.4



More information about the Spice-devel mailing list