今天使用Chrome浏览器,总是报这样一个错误:

Uncaught TypeError: Cannot read property 'canvas' of null

细看之下是无法获取WebGL上下文

canvas.getContext('experimental-webgl') == null

解决方式:打开Chrome的硬件加速功能

设置页面(chrome://settings/) -- 高级设置 --勾选Use hardware acceleration when available -- 重启Chrome -- 解决

相关文章:

  • 2022-01-15
  • 2021-12-13
  • 2022-12-23
  • 2021-12-12
  • 2021-12-02
  • 2021-12-02
  • 2021-08-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-06
  • 2021-12-02
  • 2021-12-22
相关资源
相似解决方案