Whats up builders,
Iām experiencing a important situation with WebP texture format in Safari browser utilizing Cocos Creator 2.4.x.
Drawback description
I would like to make use of WebP format to scale back undertaking dimension. WebP textures work completely in Chrome and Firefox, however fail to load in Safari with the next error:
Safari Console Error:
ERROR 3121: Cannot discover a texture format supported by the present platform!
Please add a fallback format within the editor.
_deserialize ā cocos2d-js-min.js:26095:52
Variations examined
Cocos Creator 2.4.10 ā WebP not working in Safari
Cocos Creator 2.4.15 (newest 2.4.x) ā WebP not working in Safari
Cocos Creator 3.7.8 ā WebP works accurately in Safari
Technical particulars
- Safari model: 14+ (which formally helps WebP format)
- Browsers examined:
- Chrome ā
works - Firefox ā
works - Safari ā
ERROR 3121
- Chrome ā
- Construct platform: Net Cell
- Problem: Engine incorrectly detects WebP help in Safari and doesnāt add it to
cc.macro.SUPPORT_TEXTURE_FORMATS
Query
I would like to make use of Cocos Creator 2.4.x particularly (can’t migrate to three.x on account of undertaking necessities).
Is there an official repair or workaround for WebP help in Safari for model 2.4.x?
Or are you able to recommend which engine recordsdata should be modified to repair WebP detection in Safari?
Thanks for any assist!


