mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-03-21 02:01:03 +00:00
Fix wrong length used in memset() in idMegaTexture::GenerateMegaMipMaps()
it should be tileSize, not sizeof( tileSize ), as it was also used for allocating that block of memory
This commit is contained in:
parent
56873e1fec
commit
5b2c78b9ff
1 changed files with 1 additions and 1 deletions
|
@ -540,7 +540,7 @@ void idMegaTexture::GenerateMegaMipMaps( megaTextureHeader_t *header, idFile *ou
|
|||
|
||||
if ( tx > width || ty > height ) {
|
||||
// off edge, zero fill
|
||||
memset( newBlock, 0, sizeof( tileSize ) );
|
||||
memset( newBlock, 0, tileSize );
|
||||
} else {
|
||||
tileNum = tileOffset + ty * width + tx;
|
||||
inFile->Seek( tileNum * tileSize, FS_SEEK_SET );
|
||||
|
|
Loading…
Reference in a new issue