Q3BSP Importer: Generate correct achFormatHint from archive extension.

Signed-off-by: Steven Lovegrove <stevenlovegrove@gmail.com>
pull/9/head
Steven Lovegrove 2012-11-04 14:07:09 -05:00
parent 54040901f0
commit 18671a2090
1 changed files with 4 additions and 4 deletions

View File

@ -670,10 +670,10 @@ bool Q3BSPFileImporter::importTextureFromArchive( const Q3BSP::Q3BSPModel *pMode
(void)readSize; (void)readSize;
ai_assert( readSize == pTexture->mWidth ); ai_assert( readSize == pTexture->mWidth );
pTexture->pcData = reinterpret_cast<aiTexel*>( pData ); pTexture->pcData = reinterpret_cast<aiTexel*>( pData );
pTexture->achFormatHint[ 0 ] = ext[ 0 ]; pTexture->achFormatHint[ 0 ] = ext[ 1 ];
pTexture->achFormatHint[ 1 ] = ext[ 1 ]; pTexture->achFormatHint[ 1 ] = ext[ 2 ];
pTexture->achFormatHint[ 2 ] = ext[ 2 ]; pTexture->achFormatHint[ 2 ] = ext[ 3 ];
pTexture->achFormatHint[ 2 ] = '\0'; pTexture->achFormatHint[ 3 ] = '\0';
res = true; res = true;
aiString name; aiString name;