Moved shaders to subdir
This commit is contained in:
parent
2318cf5871
commit
f79cc70d44
13 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue