mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-28 11:57:24 +08:00
examples: Emscripten builds should allow memory growth.
Otherwise you either need to preallocate a bunch or run out of memory fast. examples/demo/04-bytepusher runs out of memory at startup without this.
This commit is contained in:
@@ -110,6 +110,7 @@ macro(add_sdl_example_executable TARGET)
|
|||||||
target_link_libraries(${TARGET} PRIVATE GL)
|
target_link_libraries(${TARGET} PRIVATE GL)
|
||||||
elseif(EMSCRIPTEN)
|
elseif(EMSCRIPTEN)
|
||||||
set_property(TARGET ${TARGET} PROPERTY SUFFIX ".html")
|
set_property(TARGET ${TARGET} PROPERTY SUFFIX ".html")
|
||||||
|
target_link_options(${TARGET} PRIVATE -sALLOW_MEMORY_GROWTH=1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(OPENGL_FOUND)
|
if(OPENGL_FOUND)
|
||||||
|
|||||||
Reference in New Issue
Block a user