]> git.tdb.fi Git - geometrycompositor.git/commitdiff
Use the appropriate GLSL version for OpenGL 3.1
authorMikko Rasa <tdb@tdb.fi>
Mon, 14 Dec 2015 17:36:58 +0000 (19:36 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 14 Dec 2015 17:36:58 +0000 (19:36 +0200)
source/main.c

index 8aa377fbcf40a0c11a768df8bd83d0a3a287ad9b..a14ea8ded2f01568528d14eeae2b4eda03b5b3ca 100644 (file)
@@ -103,7 +103,7 @@ typedef struct Compositor
 } Compositor;
 
 static const char *vshader_src =
-       "#version 150\n"
+       "#version 130\n"
        "uniform vec4 geometry;\n"
        "in vec2 vertex;\n"
        "in vec2 texture_coord;\n"
@@ -115,7 +115,7 @@ static const char *vshader_src =
        "}\n";
 
 static const char *fshader_src =
-       "#version 150\n"
+       "#version 130\n"
        "uniform sampler2D image;\n"
        "in vec2 texcoord;\n"
        "out vec4 frag_color;\n"
@@ -125,7 +125,7 @@ static const char *fshader_src =
        "}\n";
 
 static const char *masked_fshader_src =
-       "#version 150\n"
+       "#version 130\n"
        "uniform sampler2D image;\n"
        "uniform sampler2D mask;\n"
        "in vec2 texcoord;\n"