Commit 857fec71 authored by Frédéric Larue's avatar Frédéric Larue

Resource mapping in DisplayableInterface improved.

parent 4824b619
......@@ -58,7 +58,7 @@ protected:
if( !rscFile.open( QIODevice::ReadOnly | QIODevice::Text ) )
qDebug() << "Unable to load resource \"" << resourceName << "\".";
else
content = (char*) rscFile.map( 0, rscFile.size() );
content = QTextStream( &rscFile ).readAll();
return content;
}
inline bool shaderFromResources( GPU::Shader &shader,
......
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