Merge pull request #11712 from BastiaanOlij/fix_windows_reserved_far_near

near and far are reserved for near and far pointers in MSVC
This commit is contained in:
Juan Linietsky 2017-09-30 08:01:03 -03:00 committed by GitHub
commit 313b1a639c

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;