Skip to content

Commit 9e75866

Browse files
committed
Fix Javascript error
14:56:58.398 webqt.js:747 Uncaught ReferenceError: context is not defined at WebGLRenderingContext.gl.uniform3fv (webqt.js:747) at execGL (webqt.js:944) at handleGlesMessage (webqt.js:1088) at handleBinaryMessage (webqt.js:1073) at WebSocket.socket.onmessage (webqt.js:1129) Change-Id: Ifa77c853b4cec29f21cc19ffc5b86b741d8ef5ab Reviewed-by: Edward Welbourne <[email protected]>
1 parent 61ccb32 commit 9e75866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/platforms/webgl/webqt.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ window.onload = function () {
742742

743743
gl._uniform3fv = gl.uniform3fv;
744744
gl.uniform3fv = function(location, count) {
745-
var d = contextData[context];
745+
var d = contextData[currentContext];
746746
var data = [];
747747
for (var i = 0; i < count * 3; ++i)
748748
data.push(arguments[i + 2]);

0 commit comments

Comments
 (0)