Fix build with pre-C++11 compiler

This commit is contained in:
Syoyo Fujita
2017-02-09 16:10:19 +09:00
parent 9613108cef
commit e43580bd9a

View File

@@ -261,7 +261,7 @@ static bool LoadObjAndConvert(float bmin[3], float bmax[3],
}
unsigned char* image = stbi_load(texture_filename.c_str(), &w, &h, &comp, STBI_default);
if (image == nullptr) {
if (!image) {
std::cerr << "Unable to load texture: " << texture_filename << std::endl;
exit(1);
}