summaryrefslogtreecommitdiff
path: root/ZAPD/ImageBackend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ZAPD/ImageBackend.cpp')
-rw-r--r--ZAPD/ImageBackend.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ZAPD/ImageBackend.cpp b/ZAPD/ImageBackend.cpp
index cbb0f96..b8f13ac 100644
--- a/ZAPD/ImageBackend.cpp
+++ b/ZAPD/ImageBackend.cpp
@@ -216,7 +216,8 @@ void ImageBackend::WritePng(const char* filename)
void ImageBackend::WritePng(const fs::path& filename)
{
- WritePng(filename.c_str());
+ // Note: The .string() is necessary for MSVC, due to the implementation of std::filesystem differing from GCC. Do not remove!
+ WritePng(filename.string().c_str());
}
void ImageBackend::SetTextureData(const std::vector<std::vector<RGBAPixel>>& texData,