Commit 97238d1a authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[CHANGE] Allow commenting includes in shaders

parent 835cdd6a
......@@ -111,6 +111,10 @@ std::string WShader::readTextFile( std::string fileName )
bool WShader::isIncludeLine( std::string line )
{
if( line[0] == '/' && line[1] == '/' )
{
return false; // we encountered a comment
}
if ( boost::find_first( line, "#include" ) )
{
return true;
......
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