disabling depth test makes 3d viewer work again

This commit is contained in:
wmayer
2017-03-08 23:07:51 +01:00
parent 9e42badfaf
commit ac1bd39cfe
2 changed files with 5 additions and 0 deletions

View File

@@ -763,14 +763,18 @@ void QuarterWidget::paintEvent(QPaintEvent* event)
std::clock_t begin = std::clock();
if(!initialized) {
#if !defined(HAVE_QT5_OPENGL)
glEnable(GL_DEPTH_TEST);
#endif
this->getSoRenderManager()->reinitialize();
initialized = true;
}
getSoRenderManager()->activate();
#if !defined(HAVE_QT5_OPENGL)
glEnable(GL_DEPTH_TEST);
#endif
glMatrixMode(GL_PROJECTION);
QtGLWidget* w = static_cast<QtGLWidget*>(this->viewport());

View File

@@ -35,6 +35,7 @@
#include <QOpenGLWidget>
#include <QOpenGLFramebufferObject>
#include <QOpenGLVersionProfile>
#include <QOpenGLFunctions>
typedef QOpenGLContext QtGLContext;
typedef QSurfaceFormat QtGLFormat;