summaryrefslogtreecommitdiffhomepage
path: root/shaders
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-09-15 11:34:31 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-09-15 17:39:32 +0200
commitffa0f02e40286f56b261f32195118fe9a6d949cc (patch)
tree80cc26072be869e00c5092e3ae398c25af6c6c19 /shaders
parent6cf28269e6c4dc2a9cb09c8013a3cc21a190f31a (diff)
shaders/lightmap: explicitly unbind the other attachment
Diffstat (limited to 'shaders')
-rw-r--r--shaders/lightmap.cpp2
1 files changed, 2 insertions, 0 deletions
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);