Open cx20 opened 8 years ago
WebGL Inspector では canvas.getContext("webgl") の結果は、WebGLRenderingContext でなく CaptureContext となる為、型のチェックでエラーとなる。
canvas.getContext("webgl")
WebGLRenderingContext
CaptureContext
WebGL Inspector 環境でも glTips.js が使えるよう対応して欲しい。
https://cdn.rawgit.com/emadurandal/glTips/master/examples/basic/index.html
glTips.js:47 Uncaught Error: unexpected rendering context.
if (!(gl instanceof WebGLRenderingContext)) { throw new Error("unexpected rendering context."); }
faab269 で対応しました。 その部分のチェックをなくしました。
WebGL Inspector では
canvas.getContext("webgl")
の結果は、WebGLRenderingContext
でなくCaptureContext
となる為、型のチェックでエラーとなる。WebGL Inspector 環境でも glTips.js が使えるよう対応して欲しい。
https://cdn.rawgit.com/emadurandal/glTips/master/examples/basic/index.html