Cleanup: replace C-style casts with functional casts for numeric types
Some changes missed from f68cfd6bb0.
This commit is contained in:
@@ -700,7 +700,7 @@ float GPU_polygon_offset_calc(const float (*winmat)[4], float viewdist, float di
|
||||
if (depth_fac == 0.0f) {
|
||||
/* Hard-code for 24 bit precision. */
|
||||
int depthbits = 24;
|
||||
depth_fac = 1.0f / (float)((1 << depthbits) - 1);
|
||||
depth_fac = 1.0f / float((1 << depthbits) - 1);
|
||||
}
|
||||
ofs = (-1.0 / winmat[2][2]) * dist * depth_fac;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user