mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-29 15:32:54 +00:00
- Fixed crash with mock2.wad in software.
This commit is contained in:
parent
e48edf6199
commit
0cbb08ce84
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue