When changing a shader in the editor, reload it in the driver too.

--HG--
branch : gsoc2013-dfighter
hg/feature/gsoc2013-dfighter
dfighter1985 11 years ago
parent b775237215
commit 76204a844d

@ -1299,6 +1299,9 @@ protected:
private:
bool _StaticMemoryToVRAM;
public:
virtual void reloadUserShaders(){}
};
// --------------------------------------------------

@ -398,6 +398,9 @@ namespace MaterialEditor
NL3D::CUsrShaderSaver saver;
saver.setManager( shaderManager );
saver.saveShader( "./shaders", name );
NL3D::CDriverUser *d = dynamic_cast< NL3D::CDriverUser* >( driver );
if( d != NULL )
d->getDriver()->reloadUserShaders();
}
void CNel3DInterface::deleteShader( const std::string &name )

Loading…
Cancel
Save