From: Clyne Sullivan Date: Tue, 8 Sep 2015 23:25:17 +0000 (-0400) Subject: Init'd SDL_image X-Git-Url: https://code.bitgloo.com/?a=commitdiff_plain;h=8dffb66d4aaddbf769f0fc3c40393f07ca10d0fb;p=clyne%2Fgamedev.git Init'd SDL_image --- 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"<