mirror of https://github.com/CGAL/cgal
Removal of the MSAA in LCC
This commit is contained in:
parent
b8599c199a
commit
9da8afe1f1
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue