From 4a01ceaaa8f9ac7c538241c17189f7bf032c9554 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 13 Feb 2007 06:05:51 +0000 Subject: [PATCH] fix optimization --- stepmania/src/RageDisplay_D3D.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/RageDisplay_D3D.cpp b/stepmania/src/RageDisplay_D3D.cpp index b2f49e5563..168e439e28 100644 --- a/stepmania/src/RageDisplay_D3D.cpp +++ b/stepmania/src/RageDisplay_D3D.cpp @@ -802,7 +802,7 @@ void RageDisplay_D3D::SendCurrentMatrices() // If no texture is set for this texture unit, don't bother setting it up. IDirect3DBaseTexture8* pTexture = NULL; - g_pd3dDevice->GetTexture( g_currentTextureUnit, &pTexture ); + g_pd3dDevice->GetTexture( tu, &pTexture ); if( pTexture == NULL ) continue; pTexture->Release();