Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Tutorial29/Source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -993,8 +993,8 @@ class HelloTriangleApplication {
std::vector<tinyobj::shape_t> shapes;
std::vector<tinyobj::material_t> materials;
std::string err;
std::string warn;//warn and err log both necessary!
if (!tinyobj::LoadObj(&attrib, &shapes, &materials, &warn, &err, MODEL_PATH.c_str())) {

if (!tinyobj::LoadObj(&attrib, &shapes, &materials, &err, MODEL_PATH.c_str())) {
throw std::runtime_error(err);
}

Expand Down Expand Up @@ -1589,4 +1589,4 @@ int main() {
}

return EXIT_SUCCESS;
}
}