mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-24 03:11:09 +00:00
ImageWriter: Don't use inplace alpha truncation.
This may lead to errors in the D3D backend, as we overwrite read-only memory.
This commit is contained in:
parent
0e5fc56bc9
commit
d078309827
2 changed files with 22 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue