mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-22 16:08:41 +08:00
ovis: fix setCompositors if frameSrc == rWin
This commit is contained in:
@@ -363,10 +363,10 @@ public:
|
|||||||
// this should be applied to all owned render targets
|
// this should be applied to all owned render targets
|
||||||
Ogre::RenderTarget* targets[] = {frameSrc, rWin, depthRTT};
|
Ogre::RenderTarget* targets[] = {frameSrc, rWin, depthRTT};
|
||||||
|
|
||||||
for(int j = 0; j < 3; j++)
|
for(int j = (frameSrc == rWin); j < 3; j++) // skip frameSrc if it is the same as rWin
|
||||||
{
|
{
|
||||||
Ogre::RenderTarget* tgt = targets[j];
|
Ogre::RenderTarget* tgt = targets[j];
|
||||||
if(!tgt || (frameSrc == rWin && tgt == rWin)) continue;
|
if(!tgt) continue;
|
||||||
|
|
||||||
Viewport* vp = tgt->getViewport(0);
|
Viewport* vp = tgt->getViewport(0);
|
||||||
cm.removeCompositorChain(vp); // remove previous configuration
|
cm.removeCompositorChain(vp); // remove previous configuration
|
||||||
|
Reference in New Issue
Block a user