summaryrefslogtreecommitdiff
path: root/src/opengl/qgl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/opengl/qgl.cpp')
-rw-r--r--src/opengl/qgl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp
index a17beb898d..f249984893 100644
--- a/src/opengl/qgl.cpp
+++ b/src/opengl/qgl.cpp
@@ -5235,7 +5235,7 @@ void QGLContextGroup::removeShare(const QGLContext *context) {
// Update context group representative.
Q_ASSERT(group->m_shares.size() != 0);
if (group->m_context == context)
- group->m_context = group->m_shares[0];
+ group->m_context = group->m_shares.at(0);
// If there is only one context left, then make the list empty.
if (group->m_shares.size() == 1)