Prevent linear filtering on RGBA32F images when the system doesn't support it.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2016-05-22 15:59:09 -03:00
parent e71f95595c
commit d50cf0ac4a
+8
View File
@@ -501,6 +501,14 @@ void Image::setFilter(const Texture::Filter &f)
filter = f;
if (!data.empty() && !hasTextureFilteringSupport(data[0]->getFormat()))
{
filter.mag = filter.min = FILTER_NEAREST;
if (filter.mipmap == FILTER_LINEAR)
filter.mipmap = FILTER_NEAREST;
}
// We don't want filtering or (attempted) mipmaps on the default texture.
if (usingDefaultTexture)
{