summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesus Fernandez <jesus.fernandez@qt.io>2017-10-24 18:18:41 +0200
committerJesus Fernandez <Jesus.Fernandez@qt.io>2017-10-25 12:27:58 +0000
commit7c8a89c11e13c6bbd7a81ee391670a361eaf6061 (patch)
treeea830044975eabf9640f0b61e7eee0cd9b57d39c
parentecb12172933f5a42f3fc30ea8ce84d3b9a802e1e (diff)
Fix gl.renderbufferStorage function typov5.10.0-beta3
The gl.renderbufferStorage function was failing because the internal format was not converted to the supported WebGL format. Change-Id: I376ad19907ed69e54a6ee56e130f34cca211a7f9 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
-rw-r--r--src/plugins/platforms/webgl/webqt.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/webgl/webqt.jsx b/src/plugins/platforms/webgl/webqt.jsx
index 362063d..816621b 100644
--- a/src/plugins/platforms/webgl/webqt.jsx
+++ b/src/plugins/platforms/webgl/webqt.jsx
@@ -660,7 +660,7 @@ window.onload = function () {
gl.renderbufferStorage = function(target, internalFormat, width, height) {
var d = contextData[currentContext];
if (internalFormat === 0x88F0) // GL_DEPTH24_STENCIL8_OES
- internalformat = 0x84F9; // GL_DEPTH_STENCIL_OES
+ internalFormat = 0x84F9; // GL_DEPTH_STENCIL_OES
d.renderbufferFormat[d.boundRenderbuffer] = internalFormat;
gl._renderbufferStorage(target, internalFormat, width, height);
};