Accumulate filter sums using doubles to avoid unsymmetries. Fixes issue 167.

This commit is contained in:
castano
2011-09-14 17:51:09 +00:00
parent 02709e1699
commit b68d428492
3 changed files with 11 additions and 6 deletions

View File

@ -23,7 +23,7 @@
// OTHER DEALINGS IN THE SOFTWARE.
#include "nvcore/Debug.h"
#include "nvcore/Library.h"
//#include "nvcore/Library.h"
#include "CudaUtils.h"
#if defined HAVE_CUDA

View File

@ -453,7 +453,7 @@ int main(int argc, char *argv[])
// Block compressed textures with mipmaps must be powers of two.
if (!noMipmaps && format != nvtt::Format_RGB)
{
inputOptions.setRoundMode(nvtt::RoundMode_ToNearestPowerOfTwo);
inputOptions.setRoundMode(nvtt::RoundMode_ToPreviousPowerOfTwo);
}
if (normal)