mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Replaces direct Camera member usage by appropriate method call (m_Orientation > GetOrientation()).
This was SVN commit r23234.
This commit is contained in:
@@ -113,7 +113,7 @@ void ParticleRenderer::PrepareForRendering(const CShaderDefines& context)
|
||||
// Sort back-to-front by distance from camera
|
||||
PROFILE("sort emitters");
|
||||
CMatrix3D worldToCam;
|
||||
g_Renderer.GetViewCamera().m_Orientation.GetInverse(worldToCam);
|
||||
g_Renderer.GetViewCamera().GetOrientation().GetInverse(worldToCam);
|
||||
std::stable_sort(m->emitters[cullGroup].begin(), m->emitters[cullGroup].end(), SortEmitterDistance(worldToCam));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user