From abd0f83cc8862f976d65a124481e6e76cf7e143a Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 14 Feb 2007 00:07:55 +0000 Subject: [PATCH] short circuit on delete default texture --- stepmania/src/RageDisplay_OGL.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/src/RageDisplay_OGL.cpp b/stepmania/src/RageDisplay_OGL.cpp index f2b728916e..b9c5fa1093 100644 --- a/stepmania/src/RageDisplay_OGL.cpp +++ b/stepmania/src/RageDisplay_OGL.cpp @@ -1664,6 +1664,9 @@ void RageDisplay_OGL::EndConcurrentRendering() void RageDisplay_OGL::DeleteTexture( unsigned iTexture ) { + if( iTexture == 0 ) + return; + if( g_mapRenderTargets.find(iTexture) != g_mapRenderTargets.end() ) { delete g_mapRenderTargets[iTexture];