From e413b0c45a3c7cffff4260dbc6c50f68b0822d5b Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Thu, 6 Aug 2015 15:19:36 +0200 Subject: [PATCH] GLSL Version changed - Shaders specify version 140 (opengl 3.1) instead of 330. This should fix the "GLSL 3.30 is not supported" error. --- Linear_cell_complex/demo/Linear_cell_complex/Viewer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Linear_cell_complex/demo/Linear_cell_complex/Viewer.cpp b/Linear_cell_complex/demo/Linear_cell_complex/Viewer.cpp index 840c1898185..cf92a3804e3 100644 --- a/Linear_cell_complex/demo/Linear_cell_complex/Viewer.cpp +++ b/Linear_cell_complex/demo/Linear_cell_complex/Viewer.cpp @@ -232,7 +232,7 @@ void Viewer::compile_shaders() //Vertex source code const char vertex_source[] = { - "#version 330 \n" + "#version 140 \n" "in highp vec4 vertex;\n" "in highp vec3 normal;\n" "in highp vec4 color;\n" @@ -254,7 +254,7 @@ void Viewer::compile_shaders() //Vertex source code const char fragment_source[] = { - "#version 330 \n" + "#version 140 \n" "in highp vec4 fP; \n" "in highp vec3 fN; \n" "in highp vec4 fColor; \n" @@ -310,7 +310,7 @@ void Viewer::compile_shaders() //Vertex source code const char vertex_source_p_l[] = { - "#version 330 \n" + "#version 140 \n" "in highp vec4 vertex;\n" "uniform highp mat4 mvp_matrix;\n" "void main(void)\n" @@ -321,7 +321,7 @@ void Viewer::compile_shaders() //Vertex source code const char fragment_source_p_l[] = { - "#version 330 \n" + "#version 140 \n" "uniform highp vec4 color; \n" "void main(void) { \n" "gl_FragColor = color; \n"