mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-29 23:41:48 +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);
|
auto info = tex->CreateTexBuffer(0, CTF_CheckOnly| mBufferFlags);
|
||||||
mPhysicalWidth = info.mWidth;
|
mPhysicalWidth = info.mWidth;
|
||||||
mPhysicalHeight = info.mHeight;
|
mPhysicalHeight = info.mHeight;
|
||||||
mPhysicalScale = mPhysicalWidth / tex->Width;
|
mPhysicalScale = tex->Width > 0? mPhysicalWidth / tex->Width : mPhysicalWidth;
|
||||||
CalcBitSize();
|
CalcBitSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue