mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 11:09:19 +02:00
Do not use temp variable when it is not needed
This commit is contained in:
@@ -4313,7 +4313,7 @@ void opengl_renderer::MakeScreenshot()
|
||||
void
|
||||
opengl_renderer::Update_Lights( light_array &Lights ) {
|
||||
// arrange the light array from closest to farthest from current position of the camera
|
||||
auto const camera = m_renderpass.camera.position();
|
||||
auto const &camera = m_renderpass.camera.position();
|
||||
std::sort(
|
||||
std::begin( Lights.data ),
|
||||
std::end( Lights.data ),
|
||||
|
||||
Reference in New Issue
Block a user