Prevent crash when AFT draws an AFT

by remember the previous render target.
This commit is contained in:
sigatrev
2015-03-17 21:41:31 -05:00
parent cc5c05a4f1
commit 45a0952a3b
5 changed files with 14 additions and 1 deletions
+8
View File
@@ -2475,6 +2475,14 @@ unsigned RageDisplay_Legacy::CreateRenderTarget( const RenderTargetParam &param,
return iTexture;
}
unsigned RageDisplay_Legacy::GetRenderTarget( )
{
for( map<unsigned, RenderTarget*>::const_iterator it = g_mapRenderTargets.begin( ); it != g_mapRenderTargets.end( ); ++it )
if( it->second == g_pCurrentRenderTarget )
return it->first;
return 0;
}
void RageDisplay_Legacy::SetRenderTarget( unsigned iTexture, bool bPreserveTexture )
{
if (iTexture == 0)