MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / destroyRenderPassDescriptor

Method destroyRenderPassDescriptor

OgreMain/src/OgreRenderSystem.cpp:471–496  ·  view source on GitHub ↗

-----------------------------------------------------------------------

Source from the content-addressed store, hash-verified

469 }
470 //-----------------------------------------------------------------------
471 void RenderSystem::destroyRenderPassDescriptor( RenderPassDescriptor *renderPassDesc )
472 {
473 RenderPassDescriptorSet::iterator itor = mRenderPassDescs.find( renderPassDesc );
474 assert( itor != mRenderPassDescs.end() && "Already destroyed?" );
475 if( itor != mRenderPassDescs.end() )
476 mRenderPassDescs.erase( itor );
477
478 if( renderPassDesc->mDepth.texture )
479 {
480 _dereferenceSharedDepthBuffer( renderPassDesc->mDepth.texture );
481
482 if( renderPassDesc->mStencil.texture &&
483 renderPassDesc->mStencil.texture == renderPassDesc->mDepth.texture )
484 {
485 _dereferenceSharedDepthBuffer( renderPassDesc->mStencil.texture );
486 renderPassDesc->mStencil.texture = 0;
487 }
488 }
489 if( renderPassDesc->mStencil.texture )
490 {
491 _dereferenceSharedDepthBuffer( renderPassDesc->mStencil.texture );
492 renderPassDesc->mStencil.texture = 0;
493 }
494
495 delete renderPassDesc;
496 }
497 //---------------------------------------------------------------------
498 void RenderSystem::destroyAllRenderPassDescriptors()
499 {

Callers 4

_resolveToMethod · 0.80
~CompositorPassMethod · 0.80
notifyDestroyedMethod · 0.80
notifyClearedMethod · 0.80

Calls 3

findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected