X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcolorcurve.cpp;h=1c76e1eb885ddbc284d13d7510d588e25a66e620;hb=194f960f91041ebee44e2745627d5e480e893d82;hp=6b456dfe31bbc55a21d0148459c43a5d800e8f42;hpb=f07dffb230b53efcf5e2706493b065f020077fdc;p=libs%2Fgl.git diff --git a/source/colorcurve.cpp b/source/colorcurve.cpp index 6b456dfe..1c76e1eb 100644 --- a/source/colorcurve.cpp +++ b/source/colorcurve.cpp @@ -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();