Commit 76032fd1 authored by Jan Möbius's avatar Jan Möbius

Added missing clear .. otherwise scene is empty

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9339 383ad7c9-94d9-4d36-a494-682f7c89f535
parent eb8aade4
......@@ -135,10 +135,9 @@ void SimpleGLGraphicsScene::drawBackground(QPainter *_painter, const QRectF &_re
glPopMatrix ();
glClear(GL_DEPTH_BUFFER_BIT);
}
_painter->setBackground(QApplication::palette().window());
_painter->eraseRect(_rect);
// Clear the depth buffer (This is required since QT4.6 Otherwise we get an emtpty scene!
glClear(GL_DEPTH_BUFFER_BIT);
view_->paintGL();
......
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