From cee53184e3fe5e89d1b14144664a941e5f32148c Mon Sep 17 00:00:00 2001 From: "castano@gmail.com" Date: Fri, 26 Aug 2011 11:48:12 +0000 Subject: [PATCH] Edited wiki page ApiDocumentation through web user interface. --- wiki/ApiDocumentation.wiki | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wiki/ApiDocumentation.wiki b/wiki/ApiDocumentation.wiki index 23b2c77..8e962fb 100644 --- a/wiki/ApiDocumentation.wiki +++ b/wiki/ApiDocumentation.wiki @@ -506,10 +506,10 @@ By default pixel rows of unaligned pixel formats are aligned to the next byte bo void CompressionOptions:: setPitchAlignment(int pitchAlignment); }}} -Where `pitchAlignment` must be a positive number given in bytes. Note, that previous versions of NVTT incorrectly aligned the pitch to 4 bytes by default, so obtain the same behavior you now have to explicitly set the alignment as follows: +Where `pitchAlignment` must be a positive number and a power of two, and is given in bits. Note, that previous versions of NVTT incorrectly aligned the pitch to 32 bits by default, so obtain the same behavior you now have to explicitly set the alignment as follows: {{{ -compressionOptions.setPitchAlignment(4); +compressionOptions.setPitchAlignment(32); }}}