From 84dc98d4e33a01f7153b0cb29ef36b56a0c25cb5 Mon Sep 17 00:00:00 2001 From: castano Date: Tue, 29 Jan 2013 20:37:15 +0000 Subject: [PATCH] Fix alpha detection code. Fixes issue 183. Thanks rocatis! --- trunk/src/nvtt/bc7/targa.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/src/nvtt/bc7/targa.cpp b/trunk/src/nvtt/bc7/targa.cpp index 18a2ddf..6936e74 100644 --- a/trunk/src/nvtt/bc7/targa.cpp +++ b/trunk/src/nvtt/bc7/targa.cpp @@ -110,7 +110,7 @@ void Targa::fileinfo(const std::string& filename, int& width, int& height, bool& read_file(fp, pixels, width, height, bpp, origin); - bool const_alpha = true; + const_alpha = true; for (int y=0; y