Handle IE11

This commit is contained in:
thibault.dupuy
2021-01-21 15:39:21 +01:00
parent fc22ce5871
commit 89298de3e9

View File

@@ -82,7 +82,7 @@ var htmlWebGL = `<html>
var image = new Image(); var image = new Image();
ws.onopen = function() { ws.onopen = function() {
var gl = document.getElementById('canvas').getContext('webgl'); var gl = canvas.getContext("webgl",{antialias:false}) || canvas.getContext("experimental-webgl");
var vertexShaderSrc = var vertexShaderSrc =
"attribute vec2 aVertex;" + "attribute vec2 aVertex;" +