Merge remote-tracking branch 'zdoom/master' into qzdoom
This commit is contained in:
commit
1ccf190c4f
4 changed files with 71 additions and 24 deletions
|
|
@ -241,8 +241,9 @@ void FTexture::CalcBitSize ()
|
|||
}
|
||||
WidthMask = (1 << WidthBits) - 1;
|
||||
|
||||
// The minimum height is 2, because we cannot shift right 32 bits.
|
||||
for (i = 1; (1 << i) < Height; ++i)
|
||||
// <hr>The minimum height is 2, because we cannot shift right 32 bits.</hr>
|
||||
// Scratch that. Somebody actually made a 1x1 texture, so now we have to handle it.
|
||||
for (i = 0; (1 << i) < Height; ++i)
|
||||
{ }
|
||||
|
||||
HeightBits = i;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue