From e410b7bd6300a8b8ff7b9c3760ec37902a1f255c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 21 Feb 2007 05:41:54 +0000 Subject: [PATCH] don't crash if no texture --- stepmania/src/ActorFrameTexture.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/src/ActorFrameTexture.cpp b/stepmania/src/ActorFrameTexture.cpp index b223aaaf65..085cb21c4c 100644 --- a/stepmania/src/ActorFrameTexture.cpp +++ b/stepmania/src/ActorFrameTexture.cpp @@ -45,6 +45,9 @@ void ActorFrameTexture::Create() void ActorFrameTexture::DrawPrimitives() { + if( m_pRenderTarget == NULL ) + return; + m_pRenderTarget->BeginRenderingTo( m_bPreserveTexture ); ActorFrame::DrawPrimitives();