]> git.tdb.fi Git - libs/gl.git/commitdiff
Correctly set framebuffer layers when cube map attachments are used
authorMikko Rasa <tdb@tdb.fi>
Tue, 14 Dec 2021 11:24:13 +0000 (13:24 +0200)
committerMikko Rasa <tdb@tdb.fi>
Tue, 14 Dec 2021 11:29:30 +0000 (13:29 +0200)
source/core/framebuffer.cpp

index 97cc905d5bfb107d9af7dc3101333218ea0301f7..45eaff656b65322a5d137133061e9e2ce35924ac 100644 (file)
@@ -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)