Q3BSP Importer: Generate correct achFormatHint from archive extension.
Signed-off-by: Steven Lovegrove <stevenlovegrove@gmail.com>pull/9/head
parent
54040901f0
commit
18671a2090
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue