aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSyoyo Fujita <syoyo@lighttransport.com>2017-02-09 16:10:19 +0900
committerSyoyo Fujita <syoyo@lighttransport.com>2017-02-09 16:10:19 +0900
commite43580bd9a5d38127b0e9b5b9769bb3182a69ffe (patch)
treee014ee862ed7d390b93d70086ec2cc0828dddbb4 /examples
parent9613108cef5070d7eac672f6a4cdfa8a6f72336b (diff)
downloadtinyobjloader-e43580bd9a5d38127b0e9b5b9769bb3182a69ffe.tar.gz
Fix build with pre-C++11 compiler
Diffstat (limited to 'examples')
-rw-r--r--examples/viewer/viewer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/viewer/viewer.cc b/examples/viewer/viewer.cc
index f3c753a..19ffd5c 100644
--- a/examples/viewer/viewer.cc
+++ b/examples/viewer/viewer.cc
@@ -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);
}