Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the value of PIXI.utils.isWebGLSupported() is false, i want to konw why #153

Open
chunmingdeng opened this issue Nov 12, 2020 · 1 comment

Comments

@chunmingdeng
Copy link

thsi is my device params
image
image

when i check the function 'PIXI.utils.isWebGLSupported', i found the code below
var t = { stencil: !0, failIfMajorPerformanceCaveat: !0 }; try { if (!window.WebGLRenderingContext) return !1; var e = document.createElement("canvas"), n = e.getContext("webgl", t) || e.getContext("experimental-webgl", t), i = !(!n || !n.getContextAttributes().stencil); if (n) { var r = n.getExtension("WEBGL_lose_context"); r && r.loseContext() } return n = null, i } catch (o) { return !1 }
but i didn't found anywhere call this function 'PIXI.utils.isWebGLSupported'
so, how does pixi.js judge which mode to use, 'canvas' or 'webgl' ?
can you help me? thanks!!

@chunmingdeng
Copy link
Author

the pixi.js version i use is 4.8.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant