From 39a9708020529a0950dc4ea3bd73a5a98e9854f3 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Fri, 18 Mar 2005 08:14:49 +0000 Subject: [PATCH] assert if someone tries to clear the zbuffer in an actor frame (it won't do anything because ActorFrames don't SetRenderState). Hopefully, this will save someone a lot of troubleshooting time. --- stepmania/src/ActorFrame.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/ActorFrame.cpp b/stepmania/src/ActorFrame.cpp index d9c0edaf3a..eb79140b45 100644 --- a/stepmania/src/ActorFrame.cpp +++ b/stepmania/src/ActorFrame.cpp @@ -134,6 +134,8 @@ void ActorFrame::MoveToHead( Actor* pActor ) void ActorFrame::DrawPrimitives() { + ASSERT_M( !m_bClearZBuffer, "ClearZBuffer not supported on ActorFrames" ); + if( m_fFOV != -1 ) { DISPLAY->CameraPushMatrix();