emadurandal / glTips

Useful, cherry-pickable, and CC0 (public domain like) licensed WebGL routine code snippets.
Creative Commons Zero v1.0 Universal
18 stars 6 forks source link

Could not debug by WebGL Inspector. #2

Open cx20 opened 8 years ago

cx20 commented 8 years ago

WebGL Inspector では 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.");
    }
emadurandal commented 8 years ago

faab269 で対応しました。 その部分のチェックをなくしました。