Fix sample distance power of two rounding
This commit is contained in:
parent
abae945fc8
commit
67c5201b06
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 >> 4;
|
||||
n |= n >> 8;
|
||||
++n;
|
||||
n = (n + 1) >> 1;
|
||||
surface.sampleDimension = uint16_t(n) ? uint16_t(n) : uint16_t(0xFFFF);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue