]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/framebuffer.cpp
Correctly set framebuffer layers when cube map attachments are used
[libs/gl.git] / 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)