updated image saving for fully premultiplied pipeline

This commit is contained in:
itsmattkc
2019-03-26 22:37:05 +11:00
parent 091889fbe0
commit 10f8a4b76a
+1 -1
View File
@@ -277,7 +277,7 @@ void RenderThread::paint() {
queued = true;
} else {
f->glBindFramebuffer(GL_READ_FRAMEBUFFER, composite_buffer.buffer());
QImage img(tex_width, tex_height, QImage::Format_RGBA8888);
QImage img(tex_width, tex_height, QImage::Format_RGBA8888_Premultiplied);
f->glReadPixels(0, 0, tex_width, tex_height, GL_RGBA, GL_UNSIGNED_BYTE, img.bits());
img.save(save_fn);
f->glBindFramebuffer(GL_READ_FRAMEBUFFER, 0);