Commit c7f98ecc authored by Martin Schultz's avatar Martin Schultz
Browse files

fix problem with glReadPixels for depth component by callign makeCurrent

parent d4dab601
......@@ -1901,6 +1901,7 @@ void glViewer::handleFirstPersonNavigation( QMouseEvent* _event) {
void glViewer::handleNormalNavigation( QMouseEvent* _event ) {
// Normal navigation mode is selected
QPointF f(mapFromScene(QPointF(_event->pos().x(), _event->pos().y())));
QPoint pos(f.x(), f.y());
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