-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Bug: crash when WebGL2RenderingContext is not available #10391
Comments
@GoodBoyDigital you added support for WebGL1 in v8, right? |
@bigtimebuddy I see there seem to be support for webGl 1, but it crashes on systems without support for webGl 2. |
Yeah, I gathered that. If I had to guess, we added the internal supported for WebGL1, but probably didn't actually test running in a WebGL1-only environment. |
Yeah this is definitely still an issue, we will look into it! |
For Safari in IOS 13.3, there is no global WebGL2RenderingContext in browser. Though this version of safari support webgl2, pixi will crash with "Can't get variable: WebGL2RenderingContext" when calling initFromContext. |
This should be fixed in 8.1.0 |
Current Behavior
PixiJS 8 can't start when running in an older browser without webGl 2.0 support:
Expected Behavior
I make apps for connected TVs - a lot of models still don't support webGl 2.0. Some even don't support webGl at all.
It would be great if Pixi 8 would gracefully support older browsers supporting only webGl 1.0.
Steps to Reproduce
Run any Pixi app on an TV 3+ years old.
Environment
pixi.js
version: 8.0Possible Solution
I tried declaring a mock
WebGL2RenderingContext
class (undefined
also fails further during init) to pass the webGl detection but then gl errors happen and nothing renders:Line of
activeTexture
error is: https://github.com/pixijs/pixijs/blob/dev/src/rendering/renderers/gl/texture/GlTextureSystem.ts#L190Additional Information
No response
The text was updated successfully, but these errors were encountered: