Use WebGL even with major performance caveat

This commit is contained in:
ahocevar
2018-11-30 14:20:59 +01:00
parent e9e804a836
commit a77ed76443

View File

@@ -324,7 +324,7 @@ let HAS = false;
if (typeof window !== 'undefined' && 'WebGLRenderingContext' in window) {
try {
const canvas = /** @type {HTMLCanvasElement} */ (document.createElement('canvas'));
const gl = getContext(canvas, {failIfMajorPerformanceCaveat: true});
const gl = getContext(canvas);
if (gl) {
HAS = true;
MAX_TEXTURE_SIZE = /** @type {number} */ (gl.getParameter(gl.MAX_TEXTURE_SIZE));