diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-06-22 12:36:03 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-06-26 15:09:17 +0200 |
commit | b043871d2b1ee9c57d75fe8a3f8cb22e35a4fe4d (patch) | |
tree | 129fd32333589a0a2e2351ef699fafbe97f4969b /src/opengl/qopenglframebufferobject.cpp | |
parent | f529f94132e8095ccd50030baeba2b2f18cabdb8 (diff) |
Use QList instead of QVector in opengl
Task-number: QTBUG-84469
Change-Id: I26c1cfab7f2d9aa5c71847ae02bfe0cf15c04a1b
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/opengl/qopenglframebufferobject.cpp')
-rw-r--r-- | src/opengl/qopenglframebufferobject.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/opengl/qopenglframebufferobject.cpp b/src/opengl/qopenglframebufferobject.cpp index 813c01b0a5..588ddd6535 100644 --- a/src/opengl/qopenglframebufferobject.cpp +++ b/src/opengl/qopenglframebufferobject.cpp @@ -1223,10 +1223,10 @@ GLuint QOpenGLFramebufferObject::texture() const \sa takeTexture(), texture() */ -QVector<GLuint> QOpenGLFramebufferObject::textures() const +QList<GLuint> QOpenGLFramebufferObject::textures() const { Q_D(const QOpenGLFramebufferObject); - QVector<GLuint> ids; + QList<GLuint> ids; if (d->format.samples() != 0) return ids; ids.reserve(d->colorAttachments.count()); @@ -1310,10 +1310,10 @@ QSize QOpenGLFramebufferObject::size() const \since 5.6 */ -QVector<QSize> QOpenGLFramebufferObject::sizes() const +QList<QSize> QOpenGLFramebufferObject::sizes() const { Q_D(const QOpenGLFramebufferObject); - QVector<QSize> sz; + QList<QSize> sz; sz.reserve(d->colorAttachments.size()); for (const auto &color : d->colorAttachments) sz.append(color.size); |