X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fambientocclusion.cpp;h=de937cf6f359b5b138aaabeec6c0fd4ffeccf4ae;hp=e22e039159a39b1b57927c77aa47a4053f916080;hb=9733137499a84f44c29d06d2551d41a903de1112;hpb=2e6a73a93eac0a18063ec675a24a8e6eeeb80a0c diff --git a/source/ambientocclusion.cpp b/source/ambientocclusion.cpp index e22e0391..de937cf6 100644 --- a/source/ambientocclusion.cpp +++ b/source/ambientocclusion.cpp @@ -69,11 +69,11 @@ AmbientOcclusion::AmbientOcclusion(unsigned w, unsigned h, float depth_ratio): quad(get_fullscreen_quad()) { occlude_shader.attach_shader(get_fullscreen_vertex_shader()); - occlude_shader.attach_shader_owned(new Shader(FRAGMENT_SHADER, occlude_fs)); + occlude_shader.attach_shader_owned(new FragmentShader(occlude_fs)); occlude_shader.link(); combine_shader.attach_shader(get_fullscreen_vertex_shader()); - combine_shader.attach_shader_owned(new Shader(FRAGMENT_SHADER, combine_fs)); + combine_shader.attach_shader_owned(new FragmentShader(combine_fs)); combine_shader.link(); occlusion.storage(GL::RGB, w, h);