Make sure that the compressed image gets created regardless of the number of threads used.

This commit is contained in:
Pavel Krajcevski 2012-09-18 22:33:47 -04:00
parent 3cac6ae464
commit 9fa011f8d1

View file

@ -133,9 +133,10 @@ CompressedImage * CompressImage(
} }
cmpMSTime = cmpTimeTotal / double(settings.iNumCompressions); cmpMSTime = cmpTimeTotal / double(settings.iNumCompressions);
outImg = new CompressedImage(img.GetWidth(), img.GetHeight(), settings.format, cmpData);
} }
outImg = new CompressedImage(img.GetWidth(), img.GetHeight(), settings.format, cmpData);
// Report compression time // Report compression time
fprintf(stdout, "Compression time: %0.3f ms\n", cmpMSTime); fprintf(stdout, "Compression time: %0.3f ms\n", cmpMSTime);
} }