]> git.cworth.org Git - apitrace/blobdiff - retrace/d3d9state_images.cpp
backtrace: Allow to build without libbacktrace.
[apitrace] / retrace / d3d9state_images.cpp
index c21573cd327fb402619e8c7807c4c44f1b41c558..570d843ee98d06c5726b26a998b53d1cd1439463 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <assert.h>
 #include <stdint.h>
+#include <stdio.h>
 
 #include "image.hpp"
 #include "json.hpp"
@@ -90,7 +91,6 @@ getRenderTargetImage(IDirect3DDevice9 *pDevice,
                 dst[3*x + 0] = (( pixel        & 0x1f) * (2*0xff) + 0x1f) / (2*0x1f);
                 dst[3*x + 1] = (((pixel >>  5) & 0x3f) * (2*0xff) + 0x3f) / (2*0x3f);
                 dst[3*x + 2] = (( pixel >> 11        ) * (2*0xff) + 0x1f) / (2*0x1f);
-                dst[3*x + 3] = 0xff;
             }
         } else {
             for (unsigned x = 0; x < Desc.Width; ++x) {