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

Bug: Text displays as white or black rectangle on iOS 12 & 13 #10535

Closed
bilasyurii opened this issue May 15, 2024 · 3 comments
Closed

Bug: Text displays as white or black rectangle on iOS 12 & 13 #10535

bilasyurii opened this issue May 15, 2024 · 3 comments
Assignees

Comments

@bilasyurii
Copy link

bilasyurii commented May 15, 2024

Current Behavior

On iOS 12 or 13 create a text with Pixi 8.
It's displayed as a white or black rectangle.

Expected Behavior

On iOS 12 or 13 create a text with Pixi 8.
It's displayed correctly as text. Same as on other devices.

Steps to Reproduce

Check this playground:
https://codepen.io/Yurii-Bilas/full/KKLpbOb
Notice how the text is rendered - it's displayed as white or black rectangle.
image
↑ ios 12.1

↑ ios 12.5.4

Environment

Possible Solution

Add logic for handling devices that don't support 16 gl textures, but only 8.

Additional Information

Tested on browserstack.
In console there are a few errors.
image
For globalThis issue I've added a polyfill. But that one visible is from codepen - ignore it.
INVALID_ENUM is an interesting one. I've debugged it and the error happens when activeTexture receives gl.TEXTURE0 + 8 or more (9...15). Maybe on older versions of iOS there are only 8 textures allowed for this.
The last one seems to be connected to the same 8 textures problem.
image

@GoodBoyDigital
Copy link
Member

thanks for sharing @bilasyurii !
Can you try forcing webgl 1 to see if it fixes the issue? thanks!

@bilasyurii
Copy link
Author

@GoodBoyDigital hi! yep, updated codepen to prefer webgl 1. still reproduceable

@GoodBoyDigital
Copy link
Member

thanks, this PR might do the trick! #10538

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

3 participants