Skip to content

Commit c7588be

Browse files
committed
remove asyncfy flag hoping ios 26.2 would comply
1 parent a6909a0 commit c7588be

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ target_compile_options(WebEngine PRIVATE
3131
$<$<CXX_COMPILER_ID:GNU>:-Wno-changes-meaning>
3232
)
3333

34+
3435
target_compile_definitions(WebEngine PRIVATE
3536
RESOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}/Resources"
3637
$<IF:$<BOOL:${EMSCRIPTEN}>,IMGUI_IMPL_WEBGPU_BACKEND_WGPU,IMGUI_IMPL_WEBGPU_BACKEND_DAWN>
@@ -52,7 +53,7 @@ if(EMSCRIPTEN)
5253
-sUSE_GLFW=3
5354
-sUSE_WEBGPU=1
5455
-sUSE_ZLIB=1
55-
-sASYNCIFY=1
56+
#-sASYNCIFY=1
5657
-sALLOW_MEMORY_GROWTH=0
5758
-sINITIAL_MEMORY=512mb
5859
-sWASM_BIGINT=1

src/Application.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,13 @@ namespace WebEngine
6767
m_Render->OnReady = InitializeScene;
6868
m_Render->Init(GetNativeWindow());
6969

70+
#ifndef __EMSCRIPTEN__
7071
while (!m_Render->IsReady())
7172
{
7273
m_Render->Tick();
7374
Thread::Sleep(16);
7475
}
76+
#endif
7577
}
7678
else
7779
{

0 commit comments

Comments
 (0)