Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/render')
-rw-r--r--src/render/tga.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/tga.cc b/src/render/tga.cc
index d8e2216..fb4301b 100644
--- a/src/render/tga.cc
+++ b/src/render/tga.cc
@@ -222,7 +222,7 @@ void TGA::save(const char *filename, Image & image)
if (!filename)
return;
- std::ofstream ofs(filename);
+ std::ofstream ofs(filename, std::ios_base::out | std::ios_base::binary );
if (!ofs.is_open()) {
con_warn << "Could not write " << filename << std::endl;