We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ff59193 + 642bc0c commit 20e4762Copy full SHA for 20e4762
modules/ovis/src/ovis.cpp
@@ -363,10 +363,10 @@ class WindowSceneImpl : public WindowScene
363
// this should be applied to all owned render targets
364
Ogre::RenderTarget* targets[] = {frameSrc, rWin, depthRTT};
365
366
- for(int j = 0; j < 3; j++)
+ for(int j = (frameSrc == rWin); j < 3; j++) // skip frameSrc if it is the same as rWin
367
{
368
Ogre::RenderTarget* tgt = targets[j];
369
- if(!tgt || (frameSrc == rWin && tgt == rWin)) continue;
+ if(!tgt) continue;
370
371
Viewport* vp = tgt->getViewport(0);
372
cm.removeCompositorChain(vp); // remove previous configuration
0 commit comments