From 176df98c3e9d05ba1ac332173ff55aa9fe72f574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 1 Nov 2019 17:26:41 +0100 Subject: [PATCH] Don't require the huge BC7m6 tables if this format is disabled. The 1.3 MB file might be considered excessive when bundling the transcoder sources in another project, don't require it to be present when not needed. --- transcoder/basisu_transcoder.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/transcoder/basisu_transcoder.cpp b/transcoder/basisu_transcoder.cpp index ddaf949..79a0560 100644 --- a/transcoder/basisu_transcoder.cpp +++ b/transcoder/basisu_transcoder.cpp @@ -146,7 +146,9 @@ namespace basisu namespace basist { +#if BASISD_SUPPORT_BC7_MODE6_OPAQUE_ONLY #include "basisu_transcoder_tables_bc7_m6.inc" +#endif #if BASISD_ENABLE_DEBUG_FLAGS static uint32_t g_debug_flags = 0;