mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +00:00
Fix sample distance power of two rounding
This commit is contained in:
parent
5c60c9473f
commit
9595bd3b7a
1 changed files with 1 additions and 1 deletions
|
@ -1118,7 +1118,7 @@ void DoomLevelMesh::BuildSurfaceParams(int lightMapTextureWidth, int lightMapTex
|
||||||
n |= n >> 2;
|
n |= n >> 2;
|
||||||
n |= n >> 4;
|
n |= n >> 4;
|
||||||
n |= n >> 8;
|
n |= n >> 8;
|
||||||
++n;
|
n = (n + 1) >> 1;
|
||||||
surface.sampleDimension = uint16_t(n) ? uint16_t(n) : uint16_t(0xFFFF);
|
surface.sampleDimension = uint16_t(n) ? uint16_t(n) : uint16_t(0xFFFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue