GL 3.2 allows different framebuffer attachments to have different layer counts. Rendering to layers that do not exist in all attachments is undefined; however, clearing the framebuffer should still clear all layers of all attachments.
143dd28 Test full framebuffer clear color with mismatched layer count.
tests/all.tests | 1 +
.../gl-3.2/layered-rendering/CMakeLists.gl.txt | 1 +
.../clear-color-mismatched-layer-count.c | 187 ++++++++++++++++++++
3 files changed, 189 insertions(+)
Upstream: cgit.freedesktop.org