Thin Windows runtime globals and legacy GLFW hooks
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user