Commit f005c5a
committed
fix(utils): simplify WebGL context detection logic
Remove instanceof WebGLRenderingContext check which was too restrictive.
The getContext() method already returns null if WebGL is not supported,
making the instanceof check unnecessary. This also properly supports
WebGL2RenderingContext detection.1 parent 5880386 commit f005c5a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments