Removal of the MSAA in LCC

This commit is contained in:
Maxime Gimeno 2016-02-11 14:27:44 +01:00
parent b8599c199a
commit 9da8afe1f1
2 changed files with 1 additions and 14 deletions

View File

@ -34,19 +34,6 @@ inline QGLContext* createOpenGLContext(QObject* parent)
result->create();
return result;
}
inline QGLContext* createOpenGLMSAAContext(QObject* parent)
{
QOpenGLContext *context = new QOpenGLContext(parent);
QSurfaceFormat format;
format.setVersion(2,1);
format.setProfile(QSurfaceFormat::CompatibilityProfile);
format.setSamples(16);
context->setFormat(format);
QGLContext *result = QGLContext::fromOpenGLContext(context);
result->create();
return result;
}
} // namespace Qt
} // namespace CGAL
#endif

View File

@ -28,7 +28,7 @@
#include <QDebug>
Viewer::Viewer(QWidget* parent)
: QGLViewer(CGAL::Qt::createOpenGLMSAAContext(parent),parent), wireframe(false),
: QGLViewer(CGAL::Qt::createOpenGLContext(parent),parent), wireframe(false),
flatShading(true), edges(true), vertices(true),
m_previous_scene_empty(true), are_buffers_initialized(false)
{