MCPcopy Create free account
hub / github.com/defold/defold / DeleteLightInstance

Function DeleteLightInstance

engine/render/src/render/light.cpp:100–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98 }
99
100 void DeleteLightInstance(HRenderContext render_context, HLightInstance instance)
101 {
102 LightInstance* light_instance = render_context->m_RenderLights.Get(instance);
103 if (light_instance)
104 {
105 render_context->m_RenderLightsIndices.Push(light_instance->m_LightBufferIndex);
106 render_context->m_RenderLights.Release(instance);
107 delete light_instance;
108 CommitLightCount(render_context);
109 }
110 }
111
112 static inline bool Vector3Equals(const dmVMath::Vector3& a, const dmVMath::Vector3& b)
113 {

Callers 2

TEST_FFunction · 0.85
CompLightDestroyFunction · 0.85

Calls 4

CommitLightCountFunction · 0.85
ReleaseMethod · 0.80
GetMethod · 0.45
PushMethod · 0.45

Tested by 1

TEST_FFunction · 0.68