Remove dead legacy storage fallback and hide GLFW state
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user