Skip to content

Commit 63c4025

Browse files
Handling when WebGL context is falsy and not just null
1 parent 3664e84 commit 63c4025

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/device/Features.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function init ()
121121
CanvasPool.remove(canvas);
122122
CanvasPool.remove(canvas2D);
123123

124-
return (ctx !== null);
124+
return !!ctx;
125125
}
126126
catch (e)
127127
{

0 commit comments

Comments
 (0)