]> git.tdb.fi Git - libs/gl.git/blobdiff - source/colorcurve.cpp
Make postprocessor shaders compatible with modern interface
[libs/gl.git] / source / colorcurve.cpp
index 6b456dfe31bbc55a21d0148459c43a5d800e8f42..1c76e1eb885ddbc284d13d7510d588e25a66e620 100644 (file)
@@ -45,6 +45,7 @@ ColorCurve::ColorCurve():
 {
        shprog.attach_shader(get_fullscreen_vertex_shader());
        shprog.attach_shader_owned(new FragmentShader(fragment_src));
+       shprog.bind_attribute(get_component_type(VERTEX2), "vertex");
        shprog.link();
 
        shdata.uniform("texture", 0);
@@ -105,6 +106,7 @@ void ColorCurve::render(const Texture2D &color_buf, const Texture2D &)
 {
        Bind _bind_shader(shprog);
        shdata.apply();
+       Bind _bind_mesh(quad);
        Bind _bind_tex(color_buf);
        Bind _bind_curve(curve, 1);
        quad.draw();