Skip to content

Commit e43580b

Browse files
committed
Fix build with pre-C++11 compiler
1 parent 9613108 commit e43580b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/viewer/viewer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ static bool LoadObjAndConvert(float bmin[3], float bmax[3],
261261
}
262262

263263
unsigned char* image = stbi_load(texture_filename.c_str(), &w, &h, &comp, STBI_default);
264-
if (image == nullptr) {
264+
if (!image) {
265265
std::cerr << "Unable to load texture: " << texture_filename << std::endl;
266266
exit(1);
267267
}

0 commit comments

Comments
 (0)