Remove dead legacy storage fallback and hide GLFW state

This commit is contained in:
2026-06-17 10:34:26 +02:00
parent 5491ed4bf5
commit f45fc8226c
8 changed files with 43 additions and 51 deletions

View File

@@ -65,6 +65,7 @@ int main(int argc, char** args)
printf("could not create window\n");
return 1;
}
pp::platform::legacy::set_legacy_glfw_window(wnd);
glfwSetCursorPosCallback(wnd, [](GLFWwindow* wnd, double x, double y){
g_cursor_pos = glm::vec2(x, y);
@@ -97,7 +98,7 @@ int main(int argc, char** args)
}, true);
});
glfwMakeContextCurrent(wnd);
pp::platform::legacy::acquire_legacy_glfw_render_context();
if (!gladLoadGLLoader((GLADloadproc)glfwGetProcAddress))
{
printf("Failed to initialize OpenGL context\n");
@@ -112,7 +113,6 @@ int main(int argc, char** args)
umask(0);
App::I = &app;
pp::platform::legacy::set_legacy_glfw_window(wnd);
app.set_platform_services(platform_services.get());
app.initLog();
app.create();