When i run my webgl it gives me this " playcanvas-stable.dbg.js:4965 WebGL: INVALID_ENUM: getParameter: invalid parameter name
initializeCapabilities @ playcanvas-stable.dbg.js"
how to solve this warning
When i run my webgl it gives me this " playcanvas-stable.dbg.js:4965 WebGL: INVALID_ENUM: getParameter: invalid parameter name
initializeCapabilities @ playcanvas-stable.dbg.js"
how to solve this warning
Can you provide a small project that reproduces this issue please?
Two warnings,
playcanvas-stable.dbg.js:4965 WebGL: INVALID_ENUM: getParameter: invalid parameter name
initializeCapabilities @ playcanvas-stable.dbg.js:4965
The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
Can you provide a link to the actual project itself please rather than a minified export?
Good spot on the error.
Your project has prefer WebGL 2.0 unticked and the parameter gl.MAX_SAMPLES
doesn’t exist in WebGL 1.0.
I’ve created an issue here: https://github.com/playcanvas/engine/issues/1711
Thankyou so much ,Issue solved but,
“The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu” is also coming can you look at .
That’s something that you can’t do much about. Audio cannot be autoplayed in most browsers until there is a user interaction such as a mouse click.
The general practice is to have a ‘start’ button that users have to click to progress and start playing audio as part of that touch/click event.
But i dont need audio in my project,how to disable that audiocontext?
Answer will be appericiated.
In your code, Manager.js is creating an Audio Contect https://playcanvas.com/editor/code/629254?tabs=21871285
Line 46.
Remove that onload function and you should be fine.