diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/platforms/webgl/qwebglcontext.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/platforms/webgl/qwebglcontext.cpp b/src/plugins/platforms/webgl/qwebglcontext.cpp index fb5ff03..397e26f 100644 --- a/src/plugins/platforms/webgl/qwebglcontext.cpp +++ b/src/plugins/platforms/webgl/qwebglcontext.cpp @@ -871,8 +871,12 @@ QWEBGL_FUNCTION(getIntegerv, void, glGetIntegerv, (GLenum) pname, (GLint *) data) { if (pname == GL_MAX_TEXTURE_SIZE) { - *data = 512; - return; + static bool ok; + static auto value = qgetenv("QT_WEBGL_MAX_TEXTURE_SIZE").toUInt(&ok); + if (ok) { + *data = value; + return; + } } const auto it = currentContextData()->cachedParameters.find(pname); if (it != currentContextData()->cachedParameters.end()) { |