diff options
Diffstat (limited to 'src/common.cpp')
-rw-r--r-- | src/common.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common.cpp b/src/common.cpp index 1c9c2b5..10ff64e 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -9,7 +9,7 @@ # include <vector> #endif // __WIN32__ -#include <common.h> +#include <common.hpp> #ifndef __WIN32__ @@ -80,18 +80,18 @@ const char *readFile(const char *path){ std::ifstream in (path,std::ios::in); unsigned int size; GLchar *buf; - + if(!in.is_open()){ std::cout<<"Error reading file "<<path<<"!"<<std::endl; abort(); } - + in.seekg(0,in.end); buf = new GLchar[(size = in.tellg()) + 1]; in.seekg(0,in.beg); in.read(buf,size); buf[size] = '\0'; - + in.close(); return buf; } |