- Fixed crash with mock2.wad in software.

This commit is contained in:
drfrag 2019-09-14 14:40:18 +02:00 committed by Rachael Alexanderson
parent e48edf6199
commit 0cbb08ce84

View file

@ -68,7 +68,7 @@ FSoftwareTexture::FSoftwareTexture(FTexture *tex)
auto info = tex->CreateTexBuffer(0, CTF_CheckOnly| mBufferFlags);
mPhysicalWidth = info.mWidth;
mPhysicalHeight = info.mHeight;
mPhysicalScale = mPhysicalWidth / tex->Width;
mPhysicalScale = tex->Width > 0? mPhysicalWidth / tex->Width : mPhysicalWidth;
CalcBitSize();
}