From 6e4627b9513aae4b8b2e18f90e898951c3eb7810 Mon Sep 17 00:00:00 2001 From: Jesus Fernandez Date: Thu, 13 Sep 2018 15:16:19 +0200 Subject: Move strings variable from global to local scope MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I8934a434c8d87cb72b28c80de5737a7dd0c073ef Reviewed-by: MÃ¥rten Nordheim Reviewed-by: Edward Welbourne --- src/plugins/platforms/webgl/qwebglcontext.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/platforms/webgl/qwebglcontext.cpp b/src/plugins/platforms/webgl/qwebglcontext.cpp index 409b093..0a011f2 100644 --- a/src/plugins/platforms/webgl/qwebglcontext.cpp +++ b/src/plugins/platforms/webgl/qwebglcontext.cpp @@ -173,8 +173,6 @@ inline int imageSize(GLsizei width, GLsizei height, GLenum format, GLenum type, return rowSize * height; } -QByteArrayList strings; - static void lockMutex() { QWebGLIntegrationPrivate::instance()->webSocketServer->mutex()->lock(); @@ -851,6 +849,7 @@ QWEBGL_FUNCTION(getAttribLocation, GLint, glGetAttribLocation, QWEBGL_FUNCTION(getString, const GLubyte *, glGetString, (GLenum) name) { + static QByteArrayList strings; const auto it = currentContextData()->cachedParameters.find(name); if (it != currentContextData()->cachedParameters.end()) { auto &stringCache = currentContextData()->stringCache; -- cgit v1.2.3