Skip to content

Commit

Permalink
Ensure one texture per selection buffer per camera.
Browse files Browse the repository at this point in the history
Signed-off-by: Michel Hidalgo <[email protected]>
  • Loading branch information
hidmic committed Jul 8, 2022
1 parent 67ee5db commit 5196afa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ogre2/src/Ogre2SelectionBuffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ void Ogre2SelectionBuffer::CreateRTTBuffer()
ogreRoot->getRenderSystem()->getTextureGpuManager();
this->dataPtr->renderTexture =
textureMgr->createOrRetrieveTexture(
"SelectionPassTex",
"SelectionPassTex" + this->dataPtr->camera->getName(),
Ogre::GpuPageOutStrategy::SaveToSystemRam,
Ogre::TextureFlags::RenderToTexture,
Ogre::TextureTypes::Type2D);
Expand Down

0 comments on commit 5196afa

Please sign in to comment.