mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-17 10:25:23 +00:00
Reduce innecesary changes on Render Target textures.
This commit is contained in:
parent
c354f59b72
commit
c0b2e6536b
7 changed files with 29 additions and 9 deletions
|
|
@ -539,9 +539,10 @@ void PlaneReflector::updateReflection( const ReflectParams ¶ms )
|
|||
if ( texResize ||
|
||||
reflectTex.isNull() ||
|
||||
reflectTex->getFormat() != REFLECTMGR->getReflectFormat() )
|
||||
{
|
||||
reflectTex = REFLECTMGR->allocRenderTarget( texSize );
|
||||
|
||||
GFXTexHandle depthBuff = LightShadowMap::_getDepthTarget( texSize.x, texSize.y );
|
||||
depthBuff = LightShadowMap::_getDepthTarget( texSize.x, texSize.y );
|
||||
}
|
||||
|
||||
// store current matrices
|
||||
GFXTransformSaver saver;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue