Properly detect webGL in example code on the CanvasRenderer documentation page
WebGLRenderingContext may return a truthy value even though WebGL is disabled or when a graphics card is blacklisted. I took the check from Detector.js to properly detect for this and reformatted the code for readability.
Showing
想要评论请 注册 或 登录