This website works better with JavaScript.
Home
Help
Sign In
lolengine
/
lol
mirror of
https://github.com/lolengine/lol
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
scene: fix viewport size updating.
legacy
Sam Hocevar
5 years ago
parent
2c5a1be8b3
commit
1936c4ccd8
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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);
Write
Preview
Loading…
Cancel
Save