Skip to content

Commit

Permalink
hdrgen: Use OutBuffer.extractData()
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberShadow committed Sep 22, 2015
1 parent 8735fb8 commit d7091d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hdrgen.d
Expand Up @@ -72,7 +72,7 @@ extern (C++) void genhdrfile(Module m)
toCBuffer(m, &buf, &hgs);
// Transfer image to file
m.hdrfile.setbuffer(buf.data, buf.offset);
buf.data = null;
buf.extractData();
ensurePathToNameExists(Loc(), m.hdrfile.toChars());
writeFile(m.loc, m.hdrfile);
}
Expand Down

0 comments on commit d7091d5

Please sign in to comment.