16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 19:19:19 +02:00
This commit is contained in:
milek7
2018-08-03 16:28:01 +02:00
parent d7c7305906
commit af0e193bde
5 changed files with 19 additions and 12 deletions

View File

@@ -383,7 +383,7 @@ void opengl_renderer::Render_pass(rendermode const Mode)
Update_Lights(simulation::Lights);
scene_ubs.time = Timer::GetTime();
scene_ubs.projection = OpenGLMatrices.data(GL_PROJECTION);
scene_ubo->update(scene_ubs);
scene_ubo->update(scene_ubs);
scene_ubo->bind_uniform();
m_colorpass = m_renderpass;
@@ -521,6 +521,9 @@ void opengl_renderer::Render_pass(rendermode const Mode)
glDebug("uilayer render");
UILayer.render();
// restore binding
scene_ubo->bind_uniform();
glDebug("rendermode::color end");
break;
}