There are some issues: The properties gl.viewportWidth and gl.viewportHeight are never set: gl = canvas.getContext('webgl') gl.
確定! 回上一頁