- added missing checksum file.

- fixed decoding of uncompressed DDS textures.

Apparently this was never tested and nobody ever used this format as a texture in ZDoom.
This commit is contained in:
Christoph Oelckers 2018-03-22 22:30:09 +01:00
commit c869df9bf7
2 changed files with 272 additions and 1 deletions

View file

@ -446,7 +446,7 @@ void FDDSTexture::ReadRGB (FileReader &lump, uint8_t *buffer, int pixelmode)
for (y = Height; y > 0; --y)
{
uint8_t *buffp = linebuff;
uint8_t *pixelp = pixelmode == PIX_ARGB? buffer + 4*y*Height : buffer + y;
uint8_t *pixelp = pixelmode == PIX_ARGB ? buffer + 4 * (y - 1)*Width : buffer + y - 1;
lump.Read (linebuff, Pitch);
for (x = Width; x > 0; --x)
{