mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2025-04-20 01:52:59 +02:00
disable shader validation, as i misunderstood its use
This commit is contained in:
parent
170b21089f
commit
a8b3b25e7d
@ -320,6 +320,8 @@ std::shared_ptr<Shader> Shader::create(const std::string& vertexShader, const st
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
// TODO: validate validates agains the current ogl state, so this might fail
|
||||||
glValidateProgram(program);
|
glValidateProgram(program);
|
||||||
GLint isValid = 0;
|
GLint isValid = 0;
|
||||||
glGetProgramiv(program, GL_VALIDATE_STATUS, &isValid);
|
glGetProgramiv(program, GL_VALIDATE_STATUS, &isValid);
|
||||||
@ -337,6 +339,7 @@ std::shared_ptr<Shader> Shader::create(const std::string& vertexShader, const st
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
//todo: make some check if linking and validating actually worked
|
//todo: make some check if linking and validating actually worked
|
||||||
return std::shared_ptr<Shader>(new Shader(program));
|
return std::shared_ptr<Shader>(new Shader(program));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user