summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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);