RenderTarget viewports are never removed by CompositorManager in Ogre 2.1

Design / architecture / roadmap discussions related to future of Ogre3D (version 2.0 and above)
Post Reply
Shimayama
Halfling
Posts: 74
Joined: Sat Apr 25, 2009 2:20 pm
Location: Norway
x 1

RenderTarget viewports are never removed by CompositorManager in Ogre 2.1

Post by Shimayama » Thu Mar 08, 2018 10:44 am

It seems that when removing workspaces on a RenderTarget, and then adding them again, we grow the number of actual viewports on the render target each time (RenderTarget::getNumViewports()).

For example if something like this is done multiple times, with the a bit varying viewport size each time:

Code: Select all

compositorManager->removeAllWorkspaces();
compositorManager->removeAllWorkspaceDefinitions();
compositorManager->removeAllNodeDefinitions();
compositorManager->removeAllShadowNodeDefinitions();

def = _CreateWorkspaceDef(...);
compositorManager->addWorkspace(..., defName, ...);
and mRenderTarget->getNumViewports() is printed after each time, the return value will grow.

I searched for removeAllViewports and removeViewport calls in Ogre but it seems they are never used.
0 x

Post Reply