MCPcopy Create free account
hub / github.com/cginternals/globjects / ~Program

Method ~Program

source/globjects/source/Program.cpp:64–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64Program::~Program()
65{
66 for (const auto & uniformPair : m_uniforms)
67 {
68 uniformPair.second->deregisterProgram(this);
69 }
70
71 if (id() == 0)
72 {
73 for (const auto & shader : m_shaders)
74 {
75 shader->deregisterListener(this);
76 }
77 }
78 else
79 {
80 for (const auto & shader : std::set<ref_ptr<Shader>>(m_shaders))
81 {
82 detach(shader);
83 }
84 }
85}
86
87void Program::accept(ObjectVisitor & visitor)
88{

Callers

nothing calls this directly

Calls 2

deregisterProgramMethod · 0.80
deregisterListenerMethod · 0.80

Tested by

no test coverage detected