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

bug texture qt loading

parent 331456cd
...@@ -353,7 +353,7 @@ bool Image<DIM,TYPE>::load(const std::string& filename) ...@@ -353,7 +353,7 @@ bool Image<DIM,TYPE>::load(const std::string& filename)
QImage* ptr = new QImage(filename.c_str()); QImage* ptr = new QImage(filename.c_str());
if (ptr == NULL) if (ptr->isNull())
{ {
CGoGNout << "Impossible to load "<< filename << CGoGNendl; CGoGNout << "Impossible to load "<< filename << CGoGNendl;
return false; return false;
......
Markdown is supported
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