From 4c5a4d3ee342e2c9039016aafa6e4dbcc22e8f23 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Mon, 12 Sep 2016 12:48:27 -0700 Subject: [PATCH] texconv: only emit non-pow2 warning if using -fl with a 9.x feature level --- Texconv/texconv.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Texconv/texconv.cpp b/Texconv/texconv.cpp index 7c6f2e9..3813e7a 100644 --- a/Texconv/texconv.cpp +++ b/Texconv/texconv.cpp @@ -1995,8 +1995,11 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[]) } } - if ( nonpow2warn ) + if ( nonpow2warn && maxSize <= 4096 ) + { + // Only emit this warning if ran with -fl set to a 9.x feature level wprintf( L"\n WARNING: Not all feature levels support non-power-of-2 textures with mipmaps\n" ); + } if ( non4bc ) wprintf( L"\n WARNING: Direct3D requires BC image to be multiple of 4 in width & height\n" );