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.

This commit is contained in:
Chris Danford
2005-03-18 08:14:49 +00:00
parent fd6b369a7c
commit 39a9708020
+2
View File
@@ -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();