Commit 1d5e4890 authored by schultz's avatar schultz
Browse files

added hotfix for qpainter causing glerror on windows when erasing

backround
parent e607ba56
......@@ -60,6 +60,7 @@
#include <ACG/GL/acg_glew.hh>
#include <OpenFlipper/BasePlugin/PluginFunctions.hh>
#include <OpenFlipper/common/GlobalOptions.hh>
#include "QtGLGraphicsScene.hh"
#include "QtMultiViewLayout.hh"
#include <QApplication>
......@@ -99,6 +100,10 @@ void QtGLGraphicsScene::drawBackground(QPainter *_painter, const QRectF &_rect)
// Initialize background first
_painter->setBackground(QApplication::palette().window());
#ifdef WIN32
if(!OpenFlipper::Options::coreProfile())
#endif
_painter->eraseRect(_rect);
// From now on we do OpenGL direct painting on the scene
......
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