diff --git a/src/ImageWriter.cpp b/src/ImageWriter.cpp index 31a393c..fabc317 100644 --- a/src/ImageWriter.cpp +++ b/src/ImageWriter.cpp @@ -23,7 +23,7 @@ namespace pixel { // TODO: Handle STB errors - stbi_write_png(outputPath.c_str(), imagePtr->GetSize().width, imagePtr->GetSize().height, 4, imagePtr->GetBuffer(), static_cast(imagePtr->GetStride())); + stbi_write_png(outputPath.string().c_str(), imagePtr->GetSize().width, imagePtr->GetSize().height, 4, imagePtr->GetBuffer(), static_cast(imagePtr->GetStride())); } } // namespace pixel