fix wrapping

This commit is contained in:
Glenn Maynard
2007-01-06 22:19:26 +00:00
parent 2ab500aa75
commit 7201dd2c34
+2 -2
View File
@@ -403,8 +403,6 @@ void NoteDisplay::DrawHoldPart( vector<Sprite*> &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<Sprite*> &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();
}
}