From: Mikko Rasa Date: Tue, 14 Dec 2021 11:24:13 +0000 (+0200) Subject: Correctly set framebuffer layers when cube map attachments are used X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=4f24fdd97b1845ebfcd74913fbf076faf7984902 Correctly set framebuffer layers when cube map attachments are used --- 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)