Skip to content

Commit

Permalink
Main: Compositor - ensure unused global textures are setup
Browse files Browse the repository at this point in the history
like local textures
  • Loading branch information
paroj committed Sep 2, 2024
1 parent 09c7028 commit f6e783a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion OgreMain/src/OgreCompositor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,11 @@ void Compositor::createGlobalTextures()
mGlobalTextures[def->name] = tex;
}

rendTarget->setAutoUpdated( false );

//Set DepthBuffer pool for sharing
rendTarget->setDepthBufferPool( def->depthBufferId );
if(rendTarget->getDepthBufferPool() != DepthBuffer::POOL_NO_DEPTH)
rendTarget->setDepthBufferPool( def->depthBufferId );
}
}

Expand Down

0 comments on commit f6e783a

Please sign in to comment.