We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4203

Summary: Load resources using emscripten_run_preload_plugins_data
Product: SDL_image Reporter: beuc
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.3   
Hardware: x86_64   
OS: Other   

Description beuc 2018-06-18 09:48:24 UTC
Hi,

Please consider applying the following patch to SDL2_image, which transparently loads browser-decoded images (i.e. when compiling with emcc --use-preload-plugins):
https://github.com/emscripten-ports/SDL2_image/commit/cf14dc78dded8ffee3bc549469da10fbcb7d1b90

It is consistent with emscripten's SDL1 built-in port.

See https://github.com/emscripten-ports/SDL2_image/pull/7 for complete rationale.