Skip to content

Commit

Permalink
[Restructure] Remove hardcoded shader paths
Browse files Browse the repository at this point in the history
Debug/release builds are hardcoded to expect the shaders folder in a
different path.  This is unnecessary as the new NifSkope.pro will put
the shaders with the EXE just like in the official install.
  • Loading branch information
hexabits committed Mar 4, 2014
1 parent 2ea6183 commit d5875fa
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/gl/renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,17 +383,8 @@ void Renderer::updateShaders()
releaseShaders();

QDir dir( QApplication::applicationDirPath() );
if ( 0 == dir.dirName().compare("Release",Qt::CaseInsensitive)
||0 == dir.dirName().compare("Debug",Qt::CaseInsensitive)
)
{
dir.cd( ".." );
}

if ( dir.exists( "shaders" ) )
dir.cd( "shaders" );
else if ( dir.exists( "/usr/share/nifskope/shaders" ) )
dir.cd( "/usr/share/nifskope/shaders" );

// linux does not want to load the shaders so disable them for now
#ifdef WIN32
Expand Down

0 comments on commit d5875fa

Please sign in to comment.