bkaradzic / bgfx

Cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.
https://bkaradzic.github.io/bgfx/overview.html
BSD 2-Clause "Simplified" License
15.11k stars 1.95k forks source link

Regression iOS18 in Chrome and Safari which broke all offscreen rendering #3352

Open issam3105 opened 2 months ago

issam3105 commented 2 months ago

BGFX Example : https://rdtesthtml5.s3.eu-west-1.amazonaws.com/Issam/Bug_iOS18/example-09-hdrDebug.html We noticed that our product no longer works on iOS 18 with Chrome and Safari. Upon investigation, I found that we can fix this issue by using immutable textures: using glTexStorage2D + glTexSubImage2D instead of glTexImage2D After applying this workaround (https://github.com/issam3105/bgfx/commit/7cfbdfef8219575844f75cc4f8bebf81fc40e213), the issue is temporarily resolved, but a full fix is still required BGFX Example after workaround: https://rdtesthtml5.s3.eu-west-1.amazonaws.com/Issam/Bug_iOS18/workaround/example-09-hdrDebug.html