diff options
author | Syoyo Fujita <syoyo@lighttransport.com> | 2017-02-09 16:10:19 +0900 |
---|---|---|
committer | Syoyo Fujita <syoyo@lighttransport.com> | 2017-02-09 16:10:19 +0900 |
commit | e43580bd9a5d38127b0e9b5b9769bb3182a69ffe (patch) | |
tree | e014ee862ed7d390b93d70086ec2cc0828dddbb4 /examples | |
parent | 9613108cef5070d7eac672f6a4cdfa8a6f72336b (diff) | |
download | tinyobjloader-e43580bd9a5d38127b0e9b5b9769bb3182a69ffe.tar.gz |
Fix build with pre-C++11 compiler
Diffstat (limited to 'examples')
-rw-r--r-- | examples/viewer/viewer.cc | 2 |
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); } |