X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fambientocclusion.cpp;h=de937cf6f359b5b138aaabeec6c0fd4ffeccf4ae;hb=5dd4b17dafb2223d28ef6cb83e6ca3fb88aee8af;hp=e22e039159a39b1b57927c77aa47a4053f916080;hpb=86af62e6f5a743a08c04dde873f51802af5982c4;p=libs%2Fgl.git 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);