mirror of
https://github.com/gen2brain/cam2ip.git
synced 2025-12-15 11:58:33 +00:00
Handle IE11
This commit is contained in:
@@ -82,7 +82,7 @@ var htmlWebGL = `<html>
|
||||
var image = new Image();
|
||||
|
||||
ws.onopen = function() {
|
||||
var gl = canvas.getContext("webgl",{antialias:false}) || canvas.getContext("experimental-webgl");
|
||||
var gl = document.getElementById('canvas').getContext('webgl',{antialias:false}) || canvas.getContext('experimental-webgl');
|
||||
|
||||
var vertexShaderSrc =
|
||||
"attribute vec2 aVertex;" +
|
||||
|
||||
Reference in New Issue
Block a user