From 39c291e2a6db03bf18dc328e3c029124d95e360e Mon Sep 17 00:00:00 2001 From: castano Date: Thu, 24 Jun 2010 07:10:34 +0000 Subject: [PATCH] Fix build. --- src/nvtt/bc6h/utils.cpp | 2 ++ src/nvtt/bc6h/zohone.cpp | 3 +++ src/nvtt/bc6h/zohtwo.cpp | 1 + 3 files changed, 6 insertions(+) diff --git a/src/nvtt/bc6h/utils.cpp b/src/nvtt/bc6h/utils.cpp index 1e1cec9..e0fb607 100644 --- a/src/nvtt/bc6h/utils.cpp +++ b/src/nvtt/bc6h/utils.cpp @@ -15,6 +15,8 @@ See the License for the specific language governing permissions and limitations #include "utils.h" #include +using namespace nv; + static int denom7_weights_64[] = {0, 9, 18, 27, 37, 46, 55, 64}; // divided by 64 static int denom15_weights_64[] = {0, 4, 9, 13, 17, 21, 26, 30, 34, 38, 43, 47, 51, 55, 60, 64}; // divided by 64 diff --git a/src/nvtt/bc6h/zohone.cpp b/src/nvtt/bc6h/zohone.cpp index 7442af8..dc1e9d1 100644 --- a/src/nvtt/bc6h/zohone.cpp +++ b/src/nvtt/bc6h/zohone.cpp @@ -18,11 +18,14 @@ See the License for the specific language governing permissions and limitations #include "zoh.h" #include "utils.h" +#include "nvmath/Vector.h" #include "nvmath/Fitting.h" #include // strlen #include // FLT_MAX +using namespace nv; + #define NINDICES 16 #define INDEXBITS 4 #define HIGH_INDEXBIT (1<<(INDEXBITS-1)) diff --git a/src/nvtt/bc6h/zohtwo.cpp b/src/nvtt/bc6h/zohtwo.cpp index 7e9750b..ebda9cc 100644 --- a/src/nvtt/bc6h/zohtwo.cpp +++ b/src/nvtt/bc6h/zohtwo.cpp @@ -47,6 +47,7 @@ See the License for the specific language governing permissions and limitations #include // strlen #include // FLT_MAX +using namespace nv; #define NINDICES 8 #define INDEXBITS 3