NVIDIA / Q2RTX

NVIDIA’s implementation of RTX ray-tracing in Quake II
Other
1.21k stars 180 forks source link

Fix gcc warning that fov_scale may be used uninitialized #364

Closed res2k closed 6 months ago

res2k commented 7 months ago

...which is actually true for PROJECTION_CYLINDRICAL.

RandomDude4 commented 7 months ago

Sorry, that's my fault. The same should be true for "float rad_per_pixel" which is defined just above fov_scale (as it is not used in most of the switch cases), but for some reason I do not get the same warning for it.