]> git.tdb.fi Git - libs/gl.git/commitdiff
Add location specifiers to postprocess.glsl
authorMikko Rasa <tdb@tdb.fi>
Wed, 11 Apr 2018 21:11:20 +0000 (00:11 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 11 Apr 2018 21:11:20 +0000 (00:11 +0300)
shaderlib/postprocess.glsl

index 0e632037f3bc148d904eb0fca3bf2e20f93ecb2c..c868bd11f6e841eb4ad9451b735daebbf15b3fd5 100644 (file)
@@ -1,7 +1,7 @@
 uniform sampler2D source;
 
 #pragma MSP stage(vertex)
-in vec4 vertex;
+layout(location=0) in vec4 vertex;
 void main()
 {
        gl_Position = vertex;
@@ -10,4 +10,4 @@ void main()
 }
 
 #pragma MSP stage(fragment)
-out vec4 frag_color;
+layout(location=0) out vec4 frag_color;