mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-31 22:31:05 +02:00
The Emscripten support for setting window icons introduced in #14490 does not work when using pthreads. Using `SetWindowIcon` will cause the program to crash. The reason for that is that the `Blob` constructor does not accept shared memory (`SharedArrayBuffer`). We need to create a local copy of the icon data if necessary.