clear Z after draw stream so that it doesn't conflict with arrows or dancing chars

This commit is contained in:
Chris Danford
2005-05-20 21:09:12 +00:00
parent 8b53c75e48
commit 839c286e3e
+4
View File
@@ -2,6 +2,7 @@
#include "StreamDisplay.h" #include "StreamDisplay.h"
#include "GameState.h" #include "GameState.h"
#include <float.h> #include <float.h>
#include "RageDisplay.h"
StreamDisplay::StreamDisplay() StreamDisplay::StreamDisplay()
{ {
@@ -120,6 +121,9 @@ void StreamDisplay::DrawPrimitives()
DrawMask( f ); DrawMask( f );
DrawStrip( f, fStripWidthInPercent ); DrawStrip( f, fStripWidthInPercent );
} }
// Don't leave the Zbuffer in a messy state for arrows and dancing characters
DISPLAY->ClearZBuffer();
} }
void StreamDisplay::SetPercent( float fPercent ) void StreamDisplay::SetPercent( float fPercent )