short circuit on delete default texture

This commit is contained in:
Glenn Maynard
2007-02-14 00:07:55 +00:00
parent 3595207e8b
commit abd0f83cc8
+3
View File
@@ -1664,6 +1664,9 @@ void RageDisplay_OGL::EndConcurrentRendering()
void RageDisplay_OGL::DeleteTexture( unsigned iTexture ) void RageDisplay_OGL::DeleteTexture( unsigned iTexture )
{ {
if( iTexture == 0 )
return;
if( g_mapRenderTargets.find(iTexture) != g_mapRenderTargets.end() ) if( g_mapRenderTargets.find(iTexture) != g_mapRenderTargets.end() )
{ {
delete g_mapRenderTargets[iTexture]; delete g_mapRenderTargets[iTexture];