call app::terminate at the end of the program

pull/3471/head
kallaballa 2 years ago
parent e39d37d78c
commit fb593f8918
  1. 2
      src/beauty/beauty-demo.cpp
  2. 12
      src/common/subsystems.hpp
  3. 2
      src/font/font-demo.cpp
  4. 2
      src/nanovg/nanovg-demo.cpp
  5. 2
      src/optflow/optflow-demo.cpp
  6. 2
      src/pedestrian/pedestrian-demo.cpp
  7. 2
      src/tetra/tetra-demo.cpp
  8. 2
      src/video/video-demo.cpp

@ -290,5 +290,7 @@ int main(int argc, char **argv) {
app::print_fps(); app::print_fps();
} }
app::terminate();
return 0; return 0;
} }

@ -226,18 +226,6 @@ void error_callback(int error, const char *description) {
fprintf(stderr, "Error: %s\n", description); fprintf(stderr, "Error: %s\n", description);
} }
//EGLContext get_egl_display() {
// return glfwGetEGLDisplay();
//}
//
//EGLContext get_egl_context() {
// return glfwGetEGLContext(window);
//}
//
//EGLSurface get_egl_surface() {
// return glfwGetEGLSurface(window);
//}
void init(const string &title, int major = 4, int minor = 6) { void init(const string &title, int major = 4, int minor = 6) {
assert(glfwInit()); assert(glfwInit());
glfwSetErrorCallback(error_callback); glfwSetErrorCallback(error_callback);

@ -175,5 +175,7 @@ int main(int argc, char **argv) {
app::print_fps(); app::print_fps();
} }
app::terminate();
return 0; return 0;
} }

@ -221,5 +221,7 @@ int main(int argc, char **argv) {
app::print_fps(); app::print_fps();
} }
app::terminate();
return 0; return 0;
} }

@ -257,5 +257,7 @@ int main(int argc, char **argv) {
app::print_fps(); app::print_fps();
} }
app::terminate();
return 0; return 0;
} }

@ -211,5 +211,7 @@ int main(int argc, char **argv) {
app::print_fps(); app::print_fps();
} }
app::terminate();
return 0; return 0;
} }

@ -133,5 +133,7 @@ int main(int argc, char **argv) {
app::print_fps(); app::print_fps();
} }
app::terminate();
return 0; return 0;
} }

@ -171,5 +171,7 @@ int main(int argc, char **argv) {
app::print_fps(); app::print_fps();
} }
app::terminate();
return 0; return 0;
} }

Loading…
Cancel
Save