added freeimage library (de)initialization
git-svn-id: svn://anubis/fart/trunk@381 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
parent
dca387b78f
commit
b7e2aa1bae
2
Makefile
2
Makefile
@ -9,7 +9,7 @@ export CPPFLAGS += -I"$(shell pwd)"
|
||||
endif
|
||||
export CXXFLAGS := -Wall -O2
|
||||
|
||||
LDFLAGS := -lfl -lpthread
|
||||
LDFLAGS := -lfl -lpthread -lfreeimage
|
||||
|
||||
SUBDIRS := util shapes main parser distrib
|
||||
|
||||
|
@ -10,6 +10,8 @@
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
||||
#include <FreeImage.h>
|
||||
|
||||
#include "Scene.h"
|
||||
#include "distrib/distrib.h"
|
||||
#include "BMP.h"
|
||||
@ -186,6 +188,8 @@ int main(int argc, char * argv[])
|
||||
|
||||
srand(time(NULL));
|
||||
|
||||
FreeImage_Initialise(FALSE);
|
||||
|
||||
const char * filename = argv[optind];
|
||||
client_options.push_back(filename);
|
||||
Scene scene(scene_options, filename);
|
||||
@ -334,6 +338,8 @@ int main(int argc, char * argv[])
|
||||
cout << endl;
|
||||
}
|
||||
|
||||
FreeImage_DeInitialise();
|
||||
|
||||
exit(0);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user