Prevent crash when AFT draws an AFT
by remember the previous render target.
This commit is contained in:
@@ -2475,6 +2475,14 @@ unsigned RageDisplay_Legacy::CreateRenderTarget( const RenderTargetParam ¶m,
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user