diff --git a/src/gl/textures/gl_material.cpp b/src/gl/textures/gl_material.cpp index 5207ea00d..ee51bb2b9 100644 --- a/src/gl/textures/gl_material.cpp +++ b/src/gl/textures/gl_material.cpp @@ -300,7 +300,7 @@ const FHardwareTexture *FGLTexture::Bind(int texunit, int clampmode, int transla translation = GLTranslationPalette::GetInternalTranslation(translation); } - bool needmipmap = (clampmode <= CLAMP_XY) || !(gl.flags & RFL_SAMPLER_OBJECTS); + bool needmipmap = (clampmode <= CLAMP_XY); FHardwareTexture *hwtex = CreateHwTexture(); @@ -345,7 +345,6 @@ const FHardwareTexture *FGLTexture::Bind(int texunit, int clampmode, int transla } delete[] buffer; } - if (!needmipmap) clampmode = CLAMP_XY_NOMIP; if (tex->bHasCanvas) static_cast(tex)->NeedUpdate(); if (lastSampler != clampmode || lastTranslation != translation) lastSampler = GLRenderer->mSamplerManager->Bind(texunit, clampmode, lastSampler);