From ad96fabe4ae10f14a6ea2200f69e39de23dea6a0 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sat, 17 Feb 2024 21:00:17 +0100 Subject: [PATCH] Remove mistaken code block from OGLES1 driver Version can never be 200 here, this was probably mistakenly copy-pasted from the OpenGL driver. --- source/Irrlicht/COGLESDriver.cpp | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/source/Irrlicht/COGLESDriver.cpp b/source/Irrlicht/COGLESDriver.cpp index 677cc81..6a46914 100644 --- a/source/Irrlicht/COGLESDriver.cpp +++ b/source/Irrlicht/COGLESDriver.cpp @@ -1872,33 +1872,7 @@ void COGLES1Driver::setTextureRenderStates(const SMaterial& material, bool reset if (resetAllRenderstates) statesCache.IsCached = false; -#ifdef GL_VERSION_2_1 - if (Version >= 210) - { - if (!statesCache.IsCached || material.TextureLayers[i].LODBias != statesCache.LODBias) - { - if (material.TextureLayers[i].LODBias) - { - const float tmp = core::clamp(material.TextureLayers[i].LODBias * 0.125f, -MaxTextureLODBias, MaxTextureLODBias); - glTexParameterf(tmpTextureType, GL_TEXTURE_LOD_BIAS, tmp); - } - else - glTexParameterf(tmpTextureType, GL_TEXTURE_LOD_BIAS, 0.f); - - statesCache.LODBias = material.TextureLayers[i].LODBias; - } - } - else if (FeatureAvailable[IRR_EXT_texture_lod_bias]) - { - if (material.TextureLayers[i].LODBias) - { - const float tmp = core::clamp(material.TextureLayers[i].LODBias * 0.125f, -MaxTextureLODBias, MaxTextureLODBias); - glTexEnvf(GL_TEXTURE_FILTER_CONTROL_EXT, GL_TEXTURE_LOD_BIAS_EXT, tmp); - } - else - glTexEnvf(GL_TEXTURE_FILTER_CONTROL_EXT, GL_TEXTURE_LOD_BIAS_EXT, 0.f); - } -#elif defined(GL_EXT_texture_lod_bias) +#if defined(GL_EXT_texture_lod_bias) if (FeatureAvailable[COGLESCoreExtensionHandler::IRR_GL_EXT_texture_lod_bias]) { if (material.TextureLayers[i].LODBias)