summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/webgl/qwebglcontext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/webgl/qwebglcontext.cpp')
-rw-r--r--src/plugins/platforms/webgl/qwebglcontext.cpp3
1 files changed, 1 insertions, 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;