diff --git a/utils/imgfile_sdl.cpp b/utils/imgfile_sdl.cpp index a5d80c8..0829186 100644 --- a/utils/imgfile_sdl.cpp +++ b/utils/imgfile_sdl.cpp @@ -79,5 +79,6 @@ uint64_t ImgFile::write(const void* buf, uint64_t offset, uint64_t length) { impl->stream->seekg(offset, std::ios::beg); impl->stream->write((const char *)buf, length); + impl->stream->flush(); return impl->stream->gcount(); }