lost workaround forsituations, where multisampling gets lost, fixed

This commit is contained in:
Uwe Rathmann 2022-06-13 20:34:12 +02:00
parent 1339a5f4cb
commit 2a2894a63f
1 changed files with 12 additions and 0 deletions

View File

@ -158,6 +158,18 @@ quint32 QskTextureRenderer::createPaintedTextureGL(
painter.scale( ratio, ratio );
helper->paint( &painter, size / ratio );
#if 1
if ( format1.samples() > 0 )
{
/*
Multisampling in the window surface might get lost
as a side effect of rendering to the FBO.
weired, needs to be investigated more
*/
painter.setRenderHint( QPainter::Antialiasing, true );
}
#endif
}
QOpenGLFramebufferObjectFormat format2;