Skip to content

Commit

Permalink
Add begin/endNativePainting to Viewport::drawBackground
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeeter committed Mar 16, 2015
1 parent 9b883bf commit 22c30e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ui/viewport/viewport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -443,10 +443,12 @@ void Viewport::pan(QVector3D d)

void Viewport::drawBackground(QPainter* painter, const QRectF& rect)
{
Q_UNUSED(painter);
Q_UNUSED(rect);

painter->beginNativePainting();
glClearColor(0.0, 0.0, 0.0, 0.0);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
painter->endNativePainting();
}

void Viewport::drawForeground(QPainter* painter, const QRectF& rect)
Expand Down

0 comments on commit 22c30e1

Please sign in to comment.