不存在的完美

知識才是一個程序猿最虔誠的信仰! 博客迁移:https://blog.lovewinne.com/

导航

Linux下Chrome浏览器不支持WebGL的解决方式。

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

Uncaught TypeError: Cannot read property 'canvas' of null

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

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

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

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

posted on 2015-09-07 23:28  熊猫侠  阅读(1151)  评论(0编辑  收藏  举报