From b62200da8400b163c3d01e7615dc8b12b4f24fd3 Mon Sep 17 00:00:00 2001 From: Artur Sampaio Date: Thu, 26 Apr 2018 11:43:19 -0300 Subject: [PATCH] Fixed a bug that prevented the user from using gl.NEAREST_MIPMAP_NEAREST minification filters. --- src/materials/texture.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/materials/texture.js b/src/materials/texture.js index f42e1aa81..b23b37b55 100644 --- a/src/materials/texture.js +++ b/src/materials/texture.js @@ -477,11 +477,11 @@ value !== "linearMipmapNearest" && value !== "linearMipmapLinear" && value !== "nearestMipmapLinear" && - value !== "linearMipmapLinear") { + value !== "nearestMipmapNearest") { this.error("Unsupported value for 'minFilter': '" + value + - "' - supported values are 'linear', 'linearMipmapNearest', 'nearestMipmapLinear' " + - "and 'linearMipmapLinear'. Defaulting to 'linearMipmapLinear'."); + "' - supported values are 'linear', 'linearMipmapNearest', 'nearestMipmapNearest', " + + "'nearestMipmapLinear' and 'linearMipmapLinear'. Defaulting to 'linearMipmapLinear'."); value = "linearMipmapLinear"; }