disabling depth test makes 3d viewer work again
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#include <QOpenGLWidget>
|
||||
#include <QOpenGLFramebufferObject>
|
||||
#include <QOpenGLVersionProfile>
|
||||
#include <QOpenGLFunctions>
|
||||
|
||||
typedef QOpenGLContext QtGLContext;
|
||||
typedef QSurfaceFormat QtGLFormat;
|
||||
|
||||
Reference in New Issue
Block a user