disable shader validation, as i misunderstood its use

This commit is contained in:
Green Sky 2022-02-08 20:33:55 +01:00
parent 170b21089f
commit a8b3b25e7d

View File

@ -320,6 +320,8 @@ std::shared_ptr<Shader> Shader::create(const std::string& vertexShader, const st
return nullptr;
}
#if 0
// TODO: validate validates agains the current ogl state, so this might fail
glValidateProgram(program);
GLint isValid = 0;
glGetProgramiv(program, GL_VALIDATE_STATUS, &isValid);
@ -337,6 +339,7 @@ std::shared_ptr<Shader> Shader::create(const std::string& vertexShader, const st
return nullptr;
}
#endif
//todo: make some check if linking and validating actually worked
return std::shared_ptr<Shader>(new Shader(program));