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.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index e37c2dd..96eb7da 100644 --- a/src/main.cpp +++ b/src/main.cpp
@@ -3,12 +3,14 @@
3#include "renderer.h" 3#include "renderer.h"
4#include <cstdlib> 4#include <cstdlib>
5#include "game.h" 5#include "game.h"
6#include "muxer.h"
6 7
7int main() 8int main()
8{ 9{
9 srand(time(NULL)); 10 srand(time(NULL));
10 11
11 GLFWwindow* window = initRenderer(); 12 GLFWwindow* window = initRenderer();
13 initMuxer();
12 14
13 // Put this in a block so game goes out of scope before we destroy the renderer 15 // Put this in a block so game goes out of scope before we destroy the renderer
14 { 16 {
@@ -16,6 +18,7 @@ int main()
16 game.execute(window); 18 game.execute(window);
17 } 19 }
18 20
21 destroyMuxer();
19 destroyRenderer(); 22 destroyRenderer();
20 23
21 return 0; 24 return 0;