From 8dffb66d4aaddbf769f0fc3c40393f07ca10d0fb Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Tue, 8 Sep 2015 19:25:17 -0400 Subject: Init'd SDL_image --- src/main.cpp | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 27cc080..71b6595 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -11,11 +11,13 @@ Window win; int main(int argc,char **argv){ //runs start-up procedures - if(SDL_Init(SDL_INIT_VIDEO) < 0){ - std::cout << "SDL was not able to initialize! Error: " << SDL_GetError() << std::endl; - return -1; - }else{ - atexit(SDL_Quit); + if(!SDL_Init(SDL_INIT_VIDEO)){ + atexit(SDL_Quit); + if(!(IMG_Init(IMG_INIT_PNG)&IMG_INIT_PNG)){ + std::cout<<"Could not init image libraries!\n"<