From 4f24fdd97b1845ebfcd74913fbf076faf7984902 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 14 Dec 2021 13:24:13 +0200 Subject: [PATCH] Correctly set framebuffer layers when cube map attachments are used --- source/core/framebuffer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/core/framebuffer.cpp b/source/core/framebuffer.cpp index 97cc905d..45eaff65 100644 --- a/source/core/framebuffer.cpp +++ b/source/core/framebuffer.cpp @@ -81,6 +81,7 @@ void Framebuffer::check_size() { w = max(tex_cube->get_size()>>a.level, 1U); h = w; + l = (a.layer<0 ? 6 : 1); } if(first) -- 2.45.2