mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-17 03:37:54 -06:00
ENABLE_SHADERS_MANAGER -> Small refactoring
This commit is contained in:
parent
dd424b6bcf
commit
0d579f5467
3 changed files with 27 additions and 112 deletions
|
@ -30,7 +30,7 @@ std::pair<bool, std::string> GLShadersManager::init()
|
|||
|
||||
bool valid = true;
|
||||
|
||||
// used to render bed axes, selection hints
|
||||
// used to render bed axes and model, selection hints, gcode sequential view marker model
|
||||
valid &= append_shader("gouraud_light", { "gouraud_light.vs", "gouraud_light.fs" });
|
||||
// used to render printbed
|
||||
valid &= append_shader("printbed", { "printbed.vs", "printbed.fs" });
|
||||
|
@ -62,8 +62,7 @@ std::pair<bool, std::string> GLShadersManager::init()
|
|||
|
||||
void GLShadersManager::shutdown()
|
||||
{
|
||||
for (std::unique_ptr<GLShaderProgram>& shader : m_shaders)
|
||||
{
|
||||
for (std::unique_ptr<GLShaderProgram>& shader : m_shaders) {
|
||||
shader.reset();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue