From 8767bdad94f13ee1e3aa3a7c6014c2820d275267 Mon Sep 17 00:00:00 2001 From: castano Date: Tue, 25 Jun 2013 17:03:08 +0000 Subject: [PATCH] Fix assert. Fixes issue 190. --- trunk/src/nvtt/CompressionOptions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/src/nvtt/CompressionOptions.cpp b/trunk/src/nvtt/CompressionOptions.cpp index 92cbadf..1bdbd1f 100644 --- a/trunk/src/nvtt/CompressionOptions.cpp +++ b/trunk/src/nvtt/CompressionOptions.cpp @@ -138,7 +138,7 @@ void CompressionOptions::setPixelFormat(uint bitCount, uint rmask, uint gmask, u void CompressionOptions::setPixelFormat(uint8 rsize, uint8 gsize, uint8 bsize, uint8 asize) { - nvCheck(rsize <= 32 || gsize <= 32 || bsize <= 32 || asize <= 32); + nvCheck(rsize <= 32 && gsize <= 32 && bsize <= 32 && asize <= 32); m.bitcount = 0; m.rmask = 0;