From 1936c4ccd8168f800a0e0b66c8ba6fb529986949 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 23 Sep 2019 13:49:08 +0200 Subject: [PATCH] scene: fix viewport size updating. --- src/scene.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/scene.cpp b/src/scene.cpp index 67ca5e19..bdcfad18 100644 --- a/src/scene.cpp +++ b/src/scene.cpp @@ -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(m_size);