mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
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.
This commit is contained in:
parent
c26e122485
commit
9d736e8b8b
14 changed files with 33 additions and 82 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue