Commit 4956d538 authored by Sylvain Thery's avatar Sylvain Thery
Browse files

bug texture qt loading

parent 331456cd
......@@ -353,7 +353,7 @@ bool Image<DIM,TYPE>::load(const std::string& filename)
QImage* ptr = new QImage(filename.c_str());
if (ptr == NULL)
if (ptr->isNull())
CGoGNout << "Impossible to load "<< filename << CGoGNendl;
return false;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment