From 86159b0b69ca5ca5ace3da29db1bd882dfa0fac0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Sun, 25 Mar 2018 16:42:00 +0200 Subject: [PATCH] Initialize the primitives addon. --- src/main.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 9cc8dc0..331cd3d 100644 --- a/src/main.c +++ b/src/main.c @@ -24,7 +24,8 @@ int run; int redraw; #include -#include +#include +#include int main() { printf("SpaceShipSim v%s\n", VERSION); @@ -34,6 +35,11 @@ int main() { fprintf(stderr, "alleg5: failed to initialize Allegro.\n"); return 1; } + if(!al_init_primitives_addon()) + { + fprintf(stderr, "alleg5: failed to initialize primitives addon.\n"); + return 1; + } if(!create_display(800, 600)) { fprintf(stderr, "alleg5: failed to create display.\n"); @@ -72,6 +78,7 @@ int main() { evnt_mngr_deinit(); destroy_display(); + al_shutdown_primitives_addon(); return 0; }