diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-30 09:01:11 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-30 13:01:35 +0200 |
commit | 18eb51b8139f214a92d532d435366f0c0d2d15e6 (patch) | |
tree | 0a4d7e9d0e76d75489d3e8ee5a7e32b70f3ad181 /src/opengl/qopenglframebufferobject_p.h | |
parent | f1ccccb7dd9e72c53c24d5794378877f6cf3181a (diff) |
Switch to qvla where makes sense in opengl
For all of these we know in advance that the vast majority of usages
will not exceed a certain number of elements. Also, none of these are
copied or moved ever.
Change-Id: I265afec154939c2fd0d1f902d97a86315ec7bc20
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/opengl/qopenglframebufferobject_p.h')
-rw-r--r-- | src/opengl/qopenglframebufferobject_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qopenglframebufferobject_p.h b/src/opengl/qopenglframebufferobject_p.h index 2eb5936cb4..62c541fdc3 100644 --- a/src/opengl/qopenglframebufferobject_p.h +++ b/src/opengl/qopenglframebufferobject_p.h @@ -141,7 +141,7 @@ public: GLenum internalFormat; QOpenGLSharedResourceGuard *guard; }; - QList<ColorAttachment> colorAttachments; + QVarLengthArray<ColorAttachment, 8> colorAttachments; inline GLuint fbo() const { return fbo_guard ? fbo_guard->id() : 0; } }; |