diff --git a/tests/Testbed/UnitTests/TestMipMaps.cpp b/tests/Testbed/UnitTests/TestMipMaps.cpp index 97f9a81fcd..2e428ebe37 100644 --- a/tests/Testbed/UnitTests/TestMipMaps.cpp +++ b/tests/Testbed/UnitTests/TestMipMaps.cpp @@ -26,7 +26,7 @@ static bool IsPowerOfTwo(std::uint32_t x) static bool IsPowerOfTwoExtent(const Extent3D& extent) { - return (IsPowerOfTwo(extent.width) || IsPowerOfTwo(extent.height) || IsPowerOfTwo(extent.depth)); + return (IsPowerOfTwo(extent.width) && IsPowerOfTwo(extent.height) && IsPowerOfTwo(extent.depth)); } DEF_TEST( MipMaps ) @@ -45,8 +45,8 @@ DEF_TEST( MipMaps ) For future improvements, these backends could provide MIP-map generation via image-blit functionality to compute a perfect reduction filter (i.e. no undersampling). This could be enabled via a new MiscFlags entry, for example: MiscFlags::HighQualityMipFilter. */ - const bool isNpotTexture = IsPowerOfTwoExtent(texDesc.extent); - const int diffThreshold = (isNpotTexture ? 170 : 2); + const bool isNpotTexture = !IsPowerOfTwoExtent(texDesc.extent); + const int diffThreshold = (isNpotTexture ? 170 : 10); for_subrange(mip, 1, texDesc.mipLevels) {