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 - Load resources using emscripten_run_preload_plugins_data
Summary: Load resources using emscripten_run_preload_plugins_data
Status: RESOLVED FIXED
Alias: None
Product: SDL_image
Classification: Unclassified
Component: misc (show other bugs)
Version: 2.0.3
Hardware: x86_64 Other
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-18 09:48 UTC by beuc
Modified: 2019-06-10 23:54 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.