summaryrefslogtreecommitdiff
path: root/src/OffscreenContextCGL.mm
diff options
context:
space:
mode:
Diffstat (limited to 'src/OffscreenContextCGL.mm')
-rw-r--r--src/OffscreenContextCGL.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/OffscreenContextCGL.mm b/src/OffscreenContextCGL.mm
index c6d76ab..ab3cc1b 100644
--- a/src/OffscreenContextCGL.mm
+++ b/src/OffscreenContextCGL.mm
@@ -113,7 +113,7 @@ bool teardown_offscreen_context(OffscreenContext *ctx)
*/
bool save_framebuffer(OffscreenContext *ctx, const char *filename)
{
- std::ofstream fstream(filename);
+ std::ofstream fstream(filename,std::ios::out|std::ios::binary);
if (!fstream.is_open()) {
PRINTB("Can't open file \"%s\" for writing", filename);
return false;
contact: Jan Huwald // Impressum