diff --git a/BPTCEncoder/config/BPTCConfig.h.in b/BPTCEncoder/config/BPTCConfig.h.in
index a3d2570..9f37d88 100644
--- a/BPTCEncoder/config/BPTCConfig.h.in
+++ b/BPTCEncoder/config/BPTCConfig.h.in
@@ -62,4 +62,4 @@
#cmakedefine HAS_GCC_ATOMICS
#cmakedefine HAS_MSVC_ATOMICS
-#cmakedefine FOUND_NVTT_BC7_EXPORT
+#cmakedefine FOUND_NVTT_BPTC_EXPORT
diff --git a/BPTCEncoder/src/CompressNVTT.cpp b/BPTCEncoder/src/CompressNVTT.cpp
index 096ee3d..e07bda1 100644
--- a/BPTCEncoder/src/CompressNVTT.cpp
+++ b/BPTCEncoder/src/CompressNVTT.cpp
@@ -50,8 +50,8 @@
*
*/
-#include "BC7Compressor.h"
-#include "BC7CompressionMode.h"
+#include "BPTCCompressor.h"
+#include "CompressionMode.h"
#undef DBL_MAX
#include "BitStream.h"
#include "TexCompTypes.h"
@@ -62,7 +62,7 @@
#include "avpcl.h"
-namespace BC7C {
+namespace BPTCC {
void GetBlock(uint32 x, uint32 y, uint32 width, const uint32 *pixels, Tile &t) {
for(uint32 j = 0; j < 4; j++)
@@ -146,11 +146,11 @@ namespace BC7C {
double mse = kModeFuncs[mode](t, out);
PrintStat(log, ss.str().c_str(), mse);
- BitStreamReadOnly strm(reinterpret_cast(out));
+ FasTC::BitStreamReadOnly strm(reinterpret_cast(out));
while(!strm.ReadBit());
- const BC7CompressionMode::Attributes *attrs =
- BC7CompressionMode::GetAttributesForMode(mode);
+ const CompressionMode::Attributes *attrs =
+ CompressionMode::GetAttributesForMode(mode);
const uint32 nSubsets = attrs->numSubsets;
ss.str("");
diff --git a/CMakeModules/FindBC7Export.cmake b/CMakeModules/FindBC7Export.cmake
index 94474f0..675c2be 100644
--- a/CMakeModules/FindBC7Export.cmake
+++ b/CMakeModules/FindBC7Export.cmake
@@ -66,6 +66,7 @@ IF(NOT AVPCLLIB_ROOT STREQUAL "")
ENDIF()
ADD_SUBDIRECTORY(${AVPCLLIB_ROOT}/src ${CMAKE_CURRENT_BINARY_DIR}/bc7_export)
set(AVPCLLIB_INCLUDE_DIR ${AVPCLLIB_ROOT}/src )
+ SET(FOUND_NVTT_BPTC_EXPORT TRUE)
ENDIF()
mark_as_advanced( FORCE AVPCLLIB_ROOT AVPCLLIB_INCLUDE_DIR )