From 9ac592bf2b4e00da7fce18365a68624003fc3c51 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 21 Apr 2003 01:36:53 +0000 Subject: [PATCH] always honor m_bTextureWrapping; I can think of obvious uses for it when using custom texture coords --- stepmania/src/Sprite.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/stepmania/src/Sprite.cpp b/stepmania/src/Sprite.cpp index ffaf3426f5..1c8506d628 100644 --- a/stepmania/src/Sprite.cpp +++ b/stepmania/src/Sprite.cpp @@ -263,16 +263,13 @@ void Sprite::DrawPrimitives() v[1].t = RageVector2( m_CustomTexCoords[0], m_CustomTexCoords[1] ); // bottom left v[2].t = RageVector2( m_CustomTexCoords[4], m_CustomTexCoords[5] ); // bottom right v[3].t = RageVector2( m_CustomTexCoords[6], m_CustomTexCoords[7] ); // top right - - /* XXX: Why don't we honor m_bTextureWrapping when using custom coords? */ - DISPLAY->EnableTextureWrapping(); } else { const RectF *pTexCoordRect = GetCurrentTextureCoordRect(); TexCoordsFromRect(v, *pTexCoordRect); - DISPLAY->EnableTextureWrapping(m_bTextureWrapping); } + DISPLAY->EnableTextureWrapping(m_bTextureWrapping); } DISPLAY->SetTextureModeModulate();