From 7201dd2c34335a21a0e625667f143136eead0cc9 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 6 Jan 2007 22:19:26 +0000 Subject: [PATCH] fix wrapping --- stepmania/src/NoteDisplay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/NoteDisplay.cpp b/stepmania/src/NoteDisplay.cpp index 56b362b542..e5e538fce2 100644 --- a/stepmania/src/NoteDisplay.cpp +++ b/stepmania/src/NoteDisplay.cpp @@ -403,8 +403,6 @@ void NoteDisplay::DrawHoldPart( vector &vpSpr, int iCol, int fYStep, fl float fVertTexCoordOffset = 0; DISPLAY->ClearAllTextures(); - DISPLAY->SetCullMode( CULL_NONE ); - DISPLAY->SetTextureWrapping( bWrapping ); StripBuffer queue; for( float fY = fYStartPos; !bLast; fY += fYStep ) @@ -451,6 +449,8 @@ void NoteDisplay::DrawHoldPart( vector &vpSpr, int iCol, int fYStep, fl RageTexture* pTexture = (*spr)->GetTexture(); DISPLAY->SetTexture( TextureUnit_1, pTexture->GetTexHandle() ); DISPLAY->SetBlendMode( spr == vpSpr.begin() ? BLEND_NORMAL : BLEND_ADD ); + DISPLAY->SetCullMode( CULL_NONE ); + DISPLAY->SetTextureWrapping( bWrapping ); queue.Draw(); } }