Gui: fix screenshot with opaque background
This commit is contained in:
@@ -818,6 +818,9 @@ SoQtOffscreenRenderer::writeToImage (QImage& img) const
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (PRIVATE(this)->backgroundcolor[3] == 1.0) {
|
||||
img = img.convertToFormat(QImage::Format_RGB32);
|
||||
}
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
@@ -2111,7 +2111,8 @@ void View3DInventorViewer::imageFromFramebuffer(int width, int height, int sampl
|
||||
bits++;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (alpha == 255)
|
||||
img = img.convertToFormat(QImage::Format_RGB32);
|
||||
}
|
||||
|
||||
void View3DInventorViewer::renderToFramebuffer(QtGLFramebufferObject* fbo)
|
||||
|
||||
Reference in New Issue
Block a user