]> git.tdb.fi Git - libs/gl.git/blobdiff - source/postprocessor.cpp
Add a function to determine the active GL profile
[libs/gl.git] / source / postprocessor.cpp
index 6c9408cb00db48772d361bfa8b5754338ea00c30..d4f7bd2ebd32d048db9e988a70323437c61e02af 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";
 
 }
@@ -33,7 +34,7 @@ const Mesh &PostProcessor::get_fullscreen_quad()
 
 const Mesh &PostProcessor::create_fullscreen_quad()
 {
-       static Mesh mesh(GL::VERTEX2);
+       static Mesh mesh(VERTEX2);
        MeshBuilder builder(mesh);
        builder.begin(TRIANGLE_STRIP);
        builder.vertex(-1, 1);