| 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 | { |