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:
Daniel Gibson 2012-05-13 02:52:12 +02:00
parent 56873e1fec
commit 5b2c78b9ff

View file

@ -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 );