From 9d736e8b8baeeacad9cfa94edd18adfcaf000029 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sun, 5 Mar 2023 15:10:44 +0100 Subject: Drop ENABLE_GLES option ENABLE_GLES predates forking Irrlicht. Its primary use was to distinguish Irrlicht-ogles from upstream version as Minetest could be compiled with either. That's not necessary anymore and gets in the way sometimes. --- src/client/camera.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/client/camera.cpp') diff --git a/src/client/camera.cpp b/src/client/camera.cpp index 13ca7aa5c..dce94495b 100644 --- a/src/client/camera.cpp +++ b/src/client/camera.cpp @@ -599,13 +599,7 @@ void Camera::updateViewingRange() { f32 viewing_range = g_settings->getFloat("viewing_range"); - // Ignore near_plane setting on all other platforms to prevent abuse -#if ENABLE_GLES - m_cameranode->setNearValue(rangelim( - g_settings->getFloat("near_plane"), 0.0f, 0.25f) * BS); -#else m_cameranode->setNearValue(0.1f * BS); -#endif m_draw_control.wanted_range = std::fmin(adjustDist(viewing_range, getFovMax()), 4000); if (m_draw_control.range_all) { -- cgit v1.2.3