mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 06:53:59 +02:00
Fix resizing of window in 2D mode
This commit is contained in:
parent
d8b0fee934
commit
29ff401506
1 changed files with 6 additions and 0 deletions
|
@ -525,6 +525,12 @@ void OpenGLDisplayPlugin::compositeScene() {
|
|||
}
|
||||
|
||||
void OpenGLDisplayPlugin::compositeLayers() {
|
||||
auto renderSize = getRecommendedRenderSize();
|
||||
if (!_compositeFramebuffer || _compositeFramebuffer->getSize() != renderSize) {
|
||||
_compositeFramebuffer = gpu::FramebufferPointer(gpu::Framebuffer::create(gpu::Element::COLOR_RGBA_32, renderSize.x, renderSize.y));
|
||||
_compositeTexture = _compositeFramebuffer->getRenderBuffer(0);
|
||||
}
|
||||
|
||||
{
|
||||
PROFILE_RANGE_EX("compositeScene", 0xff0077ff, (uint64_t)presentCount())
|
||||
compositeScene();
|
||||
|
|
Loading…
Reference in a new issue