diff options
Diffstat (limited to 'src/common.cpp')
-rw-r--r-- | src/common.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common.cpp b/src/common.cpp index 26f5abc..01a7db8 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -117,8 +117,10 @@ const char *readFile(const char *path) unsigned int size; GLchar *buf; - if (!in.is_open()) - UserError("Error reading file " + (std::string)path + "!"); + if (!in.is_open()) { +// UserError("Error reading file " + (std::string)path + "!"); + return nullptr; + } in.seekg(0,in.end); buf = new GLchar[(size = in.tellg()) + 1]; |