Don't set RageTexture::m_TextureFormat. (Nothing ever reads it beyond

texture creation, so it can be removed.)
This commit is contained in:
Glenn Maynard
2002-10-20 05:13:34 +00:00
parent d997eb6c03
commit f15a46f431
2 changed files with 3 additions and 6 deletions
-2
View File
@@ -204,8 +204,6 @@ void RageBitmapTexture::Create(
// save information about the texture
m_iTextureWidth = ddsd.Width;
m_iTextureHeight = ddsd.Height;
m_TextureFormat = ddsd.Format;
if( bStretch )
{
+3 -4
View File
@@ -492,7 +492,6 @@ HRESULT RageMovieTexture::CreateD3DTexture()
m_iTextureWidth = ddsd.Width;
m_iTextureHeight = ddsd.Height;
m_TextureFormat = ddsd.Format;
if( m_iTextureWidth < m_iImageWidth || m_iTextureHeight < m_iImageHeight )
{
@@ -504,9 +503,9 @@ HRESULT RageMovieTexture::CreateD3DTexture()
m_iImageHeight = min(m_iImageHeight, m_iTextureHeight);
}
if( m_TextureFormat != D3DFMT_A8R8G8B8 &&
m_TextureFormat != D3DFMT_A1R5G5B5 )
throw RageException( "Texture is format we can't handle! Format = 0x%x!", m_TextureFormat );
if( ddsd.Format != D3DFMT_A8R8G8B8 &&
ddsd.Format != D3DFMT_A1R5G5B5 )
throw RageException( "Texture is format we can't handle! Format = 0x%x!", ddsd.Format );
return S_OK;