/[Sims3RigEditor]/trunk/ViewDDS/DdsSquish.cs
ViewVC logotype

Diff of /trunk/ViewDDS/DdsSquish.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/ViewDDS/DdsSquish.cs	2010/08/07 02:42:31	48
+++ trunk/ViewDDS/DdsSquish.cs	2010/08/08 07:43:37	49
@@ -220,7 +220,7 @@
         internal static byte[] DecompressImage(byte[] blocks, int width, int height, int flags)
         {
             // Allocate room for decompressed output
-            byte[] pixelOutput = new byte[width * height * 4];
+            byte[] pixelOutput = new byte[width * height * 2];
 
             // Invoke squish::DecompressImage() with the required parameters
             CallDecompressImage(pixelOutput, width, height, blocks, flags, null);

 

  ViewVC Help
Powered by ViewVC 1.1.22