Moved shaders to subdir

This commit is contained in:
Emmanuel BENOîT 2017-10-02 09:31:50 +02:00
parent 2318cf5871
commit f79cc70d44
13 changed files with 3 additions and 4 deletions

View file

@ -67,11 +67,10 @@ bool T_ShaderCode::loadPart(
{ {
assert( code[ index ] == nullptr ); assert( code[ index ] == nullptr );
FILE * f = fopen( source.c_str( ) , "r" ); const std::string sPath( "shaders/" + source );
FILE * f = fopen( sPath.c_str( ) , "r" );
if ( !f ) { if ( !f ) {
std::string error( "File not found: " ); errors.push_back( std::string( "File not found: " + sPath ) );
error += source;
errors.push_back( error );
return false; return false;
} }