]> git.tdb.fi Git - libs/gl.git/blobdiff - source/postprocessor.cpp
Make postprocessor shaders compatible with modern interface
[libs/gl.git] / source / postprocessor.cpp
index add8b1ed1055daf5527cc34ed32331ba15be84e4..3c6fbebe89b5704b64a6fd1428a6259fc76f34bb 100644 (file)
@@ -6,11 +6,12 @@
 namespace {
 
 const char fullscreen_vs_source[] =
+       "attribute vec4 vertex;\n"
        "varying vec2 texcoord;\n"
        "void main()\n"
        "{\n"
-       "       gl_Position = gl_Vertex;\n"
-       "       texcoord = gl_Vertex.xy*0.5+0.5;\n"
+       "       gl_Position = vertex;\n"
+       "       texcoord = vertex.xy*0.5+0.5;\n"
        "}\n";
 
 }
@@ -21,7 +22,7 @@ namespace GL {
 
 Shader &PostProcessor::get_fullscreen_vertex_shader()
 {
-       static Shader shader(VERTEX_SHADER, fullscreen_vs_source);
+       static VertexShader shader(fullscreen_vs_source);
        return shader;
 }