From ffa0f02e40286f56b261f32195118fe9a6d949cc Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 15 Sep 2023 11:34:31 +0200 Subject: shaders/lightmap: explicitly unbind the other attachment --- shaders/lightmap.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'shaders') diff --git a/shaders/lightmap.cpp b/shaders/lightmap.cpp index ce315c30..6600885c 100644 --- a/shaders/lightmap.cpp +++ b/shaders/lightmap.cpp @@ -250,6 +250,7 @@ void lightmap_shader::add_light(Vector2 neighbor_offset, const light_s& light) framebuffer.fb.mapForDraw({ { 0u, GL::Framebuffer::ColorAttachment{0} }, + { 1u, GL::Framebuffer::DrawAttachment::None }, }); Block block = { @@ -273,6 +274,7 @@ void lightmap_shader::add_light(Vector2 neighbor_offset, const light_s& light) AbstractShaderProgram::draw(mesh_view); framebuffer.fb.mapForDraw({ + { 0u, GL::Framebuffer::DrawAttachment::None }, { 1u, GL::Framebuffer::ColorAttachment{1} }, }); setUniform(ModeUniform, BlendLightmapMode); -- cgit v1.2.3