Added Shader::IsValid()

Former-commit-id: 829320e4fd92dafb829019d875135ca9b75a3db2
This commit is contained in:
Lynix
2012-11-02 23:47:09 +01:00
parent 9199e60436
commit 6b9c88221a
2 changed files with 6 additions and 0 deletions

View File

@@ -214,6 +214,11 @@ bool NzShader::IsLoaded(nzShaderType type) const
return m_impl->IsLoaded(type);
}
bool NzShader::IsValid() const
{
return m_impl != nullptr;
}
bool NzShader::Load(nzShaderType type, const NzString& source)
{
#if NAZARA_RENDERER_SAFE