Handling when WebGL context is falsy and not just null

This commit is contained in:
Pavle Goloskokovic 2018-01-15 12:05:11 +01:00
parent 3664e84e19
commit 63c402517c

View file

@ -121,7 +121,7 @@ function init ()
CanvasPool.remove(canvas);
CanvasPool.remove(canvas2D);
return (ctx !== null);
return !!ctx;
}
catch (e)
{