near and far are reserved for near and far pointers in MSVR

This commit is contained in:
Bastiaan Olij 2017-09-30 10:43:34 +10:00
parent f494470005
commit cf56711a7e

View file

@ -2369,11 +2369,11 @@ void RasterizerSceneGLES3::_draw_sky(RasterizerStorageGLES3::Sky *p_sky, const C
if (p_custom_fov) {
float near = p_projection.get_z_near();
float far = p_projection.get_z_far();
float near_plane = p_projection.get_z_near();
float far_plane = p_projection.get_z_far();
float aspect = p_projection.get_aspect();
camera.set_perspective(p_custom_fov, aspect, near, far);
camera.set_perspective(p_custom_fov, aspect, near_plane, far_plane);
} else {
camera = p_projection;