Commit 382e3d06 authored by Jan Möbius's avatar Jan Möbius
Browse files

Multisampling for snapshots

git-svn-id: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent eb8f9542
......@@ -2063,9 +2063,13 @@ void glViewer::snapshot(QImage& _image, int _width, int _height, bool _alpha, bo
QGLFramebufferObjectFormat format;
// set the attachments as in the standard rendering
// 16 samples per pixel as we want a nice snapshot. If this is not supported
// it will fall back to the maximal supported number of samples
QGLFramebufferObject fb( w, h, format);
if ( fb.isValid() ){
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment