From aa6cd0d2e5cdb50f8171ea42facd06a3dcc7c803 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! --- src/nvtt/bc7/targa.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvtt/bc7/targa.cpp b/src/nvtt/bc7/targa.cpp index 18a2ddf..6936e74 100644 --- a/src/nvtt/bc7/targa.cpp +++ b/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