Split Linux platform target and move runtime/platform state

This commit is contained in:
2026-06-17 01:20:11 +02:00
parent 90a55b86fe
commit 3ce365fc15
16 changed files with 169 additions and 94 deletions

View File

@@ -15,6 +15,7 @@
#ifdef _WIN32
#include "platform_windows/windows_platform_services.h"
#endif
#include "platform_legacy/legacy_platform_state.h"
#include "platform_legacy/legacy_platform_services.h"
#include "renderer_gl/opengl_capabilities.h"
@@ -65,10 +66,11 @@ void App::set_platform_services(pp::platform::PlatformServices* services) noexce
if (services)
{
pp::platform::linux_desktop::set_fps_title_callback([this](std::string title) {
if (!glfw_window)
auto* const window = pp::platform::legacy::active_legacy_glfw_window_state().window;
if (!window)
return;
glfwSetWindowTitle(glfw_window, title.c_str());
glfwSetWindowTitle(window, title.c_str());
});
}
else