diff options
| author | degasus <wickmarkus@web.de> | 2016-10-08 11:54:27 +0200 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2016-10-08 12:02:49 +0200 |
| commit | d078309827ec862901fca76e585445b6a1cab2a7 (patch) | |
| tree | dfe4c0340797f9c541172e359a5eed26f5087244 /Source/Core/VideoCommon/ImageWrite.h | |
| parent | 0e5fc56bc9f38f4b0c798543e47e0bad15a0a477 (diff) | |
ImageWriter: Don't use inplace alpha truncation.
This may lead to errors in the D3D backend, as we overwrite read-only memory.
Diffstat (limited to 'Source/Core/VideoCommon/ImageWrite.h')
| -rw-r--r-- | Source/Core/VideoCommon/ImageWrite.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/ImageWrite.h b/Source/Core/VideoCommon/ImageWrite.h index 2a28ff9aad..5e486f7e7d 100644 --- a/Source/Core/VideoCommon/ImageWrite.h +++ b/Source/Core/VideoCommon/ImageWrite.h @@ -8,5 +8,5 @@ #include "Common/CommonTypes.h" bool SaveData(const std::string& filename, const std::string& data); -bool TextureToPng(u8* data, int row_stride, const std::string& filename, int width, int height, - bool saveAlpha = true); +bool TextureToPng(const u8* data, int row_stride, const std::string& filename, int width, + int height, bool saveAlpha = true); |
