WIP (Really really broken tho)

This commit is contained in:
Tobias Dahl
2014-03-07 19:07:07 +01:00
parent 95a36794e3
commit 1f48279bc6
7 changed files with 88 additions and 129 deletions
+3 -1
View File
@@ -105,7 +105,9 @@ ShaderProgram::~ShaderProgram()
void ShaderProgram::AddShader(std::unique_ptr<Shader> shader)
{
if (!shader->IsCompiled()) {
shader->Compile();
if (shader->Compile() == 0) {
return;
}
}
m_Shaders.push_back(std::move(shader));