This patch fixes some rendering issues with big rooms in OpenGL by using a 64-bit version of R_PointToAngle for culling calculations.
R_PointToAngle
Before:
After:
(The black void in the after-picture is the culling plane / "draw distance" which could be adjusted in the rendering code if needed)