From 1fd8e8dd1edb0ede4020b5c237586c70997ab84b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 20 Sep 2004 02:43:04 +0000 Subject: [PATCH] try to avoid ClearZBuffer() --- stepmania/src/Model.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/Model.cpp b/stepmania/src/Model.cpp index b0d48fb9ac..98b975993d 100644 --- a/stepmania/src/Model.cpp +++ b/stepmania/src/Model.cpp @@ -290,11 +290,12 @@ void Model::DrawCelShaded() this->SetDiffuseAlpha(0); DISPLAY->SetPolygonMode( POLYGON_LINE ); DISPLAY->SetLineWidth( 4 ); + this->SetZWrite( false ); this->Draw(); this->SetDiffuseAlpha(1); - DISPLAY->ClearZBuffer(); this->SetGlow(RageColor(1,1,1,0)); DISPLAY->SetPolygonMode( POLYGON_FILL ); + this->SetZWrite( true ); this->Draw(); }