Some bugfixing

This commit is contained in:
Jakub Melka
2020-02-09 18:44:11 +01:00
parent fad2e22dcb
commit d10f988019
3 changed files with 8 additions and 1 deletions

View File

@ -219,7 +219,10 @@ QImage PDFRasterizer::render(const PDFPage* page, const PDFPrecompiledPage* comp
Q_ASSERT(m_fbo);
if (m_fbo->isValid() && m_fbo->bind())
{
// Now, we have bind the buffer.
// Now, we have bind the buffer. Due to bug in Qt's OpenGL drawing subsystem,
// we must render it two times, otherwise painter paths will be sometimes
// replaced by filled rectangles.
for (int i = 0; i < 2; ++i)
{
QOpenGLPaintDevice device(size);
QPainter painter(&device);