Merge pull request #2943 from malortie/hl1-mdl-fix-texture-format

[MDL HL1] Fixed wrong texture format used.
pull/2941/head
Kim Kulling 2020-01-28 13:02:18 +01:00 committed by GitHub
commit 7cad59bf0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -373,9 +373,9 @@ void HL1MDLLoader::read_texture(const Texture_HL1 *ptexture,
pResult->mFilename = ptexture->name; pResult->mFilename = ptexture->name;
pResult->mWidth = outwidth; pResult->mWidth = outwidth;
pResult->mHeight = outheight; pResult->mHeight = outheight;
pResult->achFormatHint[0] = 'b'; pResult->achFormatHint[0] = 'r';
pResult->achFormatHint[1] = 'g'; pResult->achFormatHint[1] = 'g';
pResult->achFormatHint[2] = 'r'; pResult->achFormatHint[2] = 'b';
pResult->achFormatHint[3] = 'a'; pResult->achFormatHint[3] = 'a';
pResult->achFormatHint[4] = '8'; pResult->achFormatHint[4] = '8';
pResult->achFormatHint[5] = '8'; pResult->achFormatHint[5] = '8';