summary refs log tree commit diff stats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp index 35749f5..d51da7d 100644 --- a/src/main.cpp +++ b/src/main.cpp
@@ -8,20 +8,20 @@
8int main() 8int main()
9{ 9{
10 srand(time(NULL)); 10 srand(time(NULL));
11 11
12 GLFWwindow* window = initRenderer(); 12 GLFWwindow* window = initRenderer();
13 glfwSwapInterval(1); 13 glfwSwapInterval(1);
14 14
15 initMuxer(); 15 initMuxer();
16 16
17 // Put this in a block so game goes out of scope before we destroy the renderer 17 // Put this in a block so game goes out of scope before we destroy the renderer
18 { 18 {
19 Game game {window}; 19 Game game {window};
20 game.execute(); 20 game.execute();
21 } 21 }
22 22
23 destroyMuxer(); 23 destroyMuxer();
24 destroyRenderer(); 24 destroyRenderer();
25 25
26 return 0; 26 return 0;
27} 27}