Make all GLFWView attributes private

This commit is contained in:
Thiago Marcos P. Santos
2015-05-06 16:04:13 +03:00
committed by Konstantin Käfer
parent 168d7c4f17
commit 769364c117
3 changed files with 12 additions and 7 deletions

View File

@@ -23,8 +23,7 @@ std::unique_ptr<GLFWView> view;
void quit_handler(int) {
if (view) {
mbgl::Log::Info(mbgl::Event::Setup, "waiting for quit...");
glfwSetWindowShouldClose(view->window, true);
glfwPostEmptyEvent();
view->setShouldClose();
} else {
exit(0);
}