mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-23 10:59:18 +02:00
fix camera-lights lag
This commit is contained in:
@@ -404,7 +404,6 @@ void opengl_renderer::Render_pass(rendermode const Mode)
|
||||
break;
|
||||
}
|
||||
|
||||
Update_Lights(simulation::Lights);
|
||||
scene_ubs.time = Timer::GetTime();
|
||||
scene_ubs.projection = OpenGLMatrices.data(GL_PROJECTION);
|
||||
scene_ubo->update(scene_ubs);
|
||||
@@ -1576,6 +1575,8 @@ void opengl_renderer::Render(scene::basic_region *Region)
|
||||
{
|
||||
case rendermode::color:
|
||||
{
|
||||
Update_Lights(simulation::Lights);
|
||||
|
||||
Render(std::begin(m_sectionqueue), std::end(m_sectionqueue));
|
||||
// draw queue is filled while rendering sections
|
||||
if (EditorModeFlag)
|
||||
|
||||
Reference in New Issue
Block a user