mirror of
https://github.com/gen2brain/cam2ip.git
synced 2025-12-15 20:08:30 +00:00
Handle IE11
This commit is contained in:
@@ -82,7 +82,7 @@ var htmlWebGL = `<html>
|
|||||||
var image = new Image();
|
var image = new Image();
|
||||||
|
|
||||||
ws.onopen = function() {
|
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 =
|
var vertexShaderSrc =
|
||||||
"attribute vec2 aVertex;" +
|
"attribute vec2 aVertex;" +
|
||||||
|
|||||||
Reference in New Issue
Block a user