Browse Source

scene: fix viewport size updating.

legacy
Sam Hocevar 5 years ago
parent
commit
1936c4ccd8
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/scene.cpp

+ 2
- 0
src/scene.cpp View File

@@ -457,6 +457,8 @@ void Scene::pre_render(float)
if (m_size != m_wanted_size)
{
m_size = m_wanted_size;

m_renderer->SetViewport(ibox2(ivec2::zero, m_size));
for (int i = 0; i < 4; ++i)
m_renderbuffer[i] = std::make_shared<Framebuffer>(m_size);



Loading…
Cancel
Save