Thin Windows runtime globals and legacy GLFW hooks

This commit is contained in:
2026-06-17 09:51:25 +02:00
parent 25eff166f6
commit 4c91701e11
9 changed files with 43 additions and 54 deletions

View File

@@ -186,9 +186,9 @@ void swap_async_render_context()
void enqueue_main_thread_task(std::packaged_task<void()> task)
{
if (auto* runtime = bound_runtime())
if (auto* app = bound_app())
{
runtime->main_thread_task(std::move(task));
app->runtime().main_thread_task(std::move(task));
return;
}
@@ -200,9 +200,9 @@ void enqueue_main_thread_task(std::packaged_task<void()> task)
void drain_main_thread_tasks()
{
if (auto* runtime = bound_runtime())
if (auto* app = bound_app())
{
runtime->drain_main_thread_tasks();
app->runtime().drain_main_thread_tasks();
return;
}
}