Skip to content

Commit 642bc0c

Browse files
committed
ovis: fix setCompositors if frameSrc == rWin
1 parent c64f925 commit 642bc0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/ovis/src/ovis.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,10 +363,10 @@ class WindowSceneImpl : public WindowScene
363363
// this should be applied to all owned render targets
364364
Ogre::RenderTarget* targets[] = {frameSrc, rWin, depthRTT};
365365

366-
for(int j = 0; j < 3; j++)
366+
for(int j = (frameSrc == rWin); j < 3; j++) // skip frameSrc if it is the same as rWin
367367
{
368368
Ogre::RenderTarget* tgt = targets[j];
369-
if(!tgt || (frameSrc == rWin && tgt == rWin)) continue;
369+
if(!tgt) continue;
370370

371371
Viewport* vp = tgt->getViewport(0);
372372
cm.removeCompositorChain(vp); // remove previous configuration

0 commit comments

Comments
 (0)