]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/sequence.cpp
Expose the maximum number of attributes and attachments
[libs/gl.git] / source / render / sequence.cpp
index 2a5b351c888d2b7e3c609706061f8ae352301bda..6c98b4023c293db017d8b43dcc3c9619dbeeacc4 100644 (file)
@@ -109,7 +109,7 @@ void Sequence::render(Renderer &renderer, Tag tag) const
                        throw invalid_operation("Sequence::render");
 
                const FrameFormat &format = target_fbo->get_format();
-               ClearValue clear_values[7];
+               ClearValue clear_values[FrameFormat::MAX_ATTACHMENTS];
                unsigned i = 0;
                Color default_color = (clear_colors.empty() ? Color(0.0f, 0.0f, 0.0f, 0.0f) : clear_colors.front());
                ClearValue *cv = clear_values;