From: Mikko Rasa Date: Mon, 14 Dec 2015 17:36:58 +0000 (+0200) Subject: Use the appropriate GLSL version for OpenGL 3.1 X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=76a754b69167f6e6d627a3c89440f3de356b179c;p=geometrycompositor.git Use the appropriate GLSL version for OpenGL 3.1 --- diff --git a/source/main.c b/source/main.c index 8aa377f..a14ea8d 100644 --- a/source/main.c +++ b/source/main.c @@ -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"