mirror of https://github.com/CGAL/cgal
commit
69ba6238a3
|
|
@ -30,8 +30,10 @@ inline QGLContext* createOpenGLContext()
|
||||||
format.setVersion(2,1);
|
format.setVersion(2,1);
|
||||||
format.setProfile(QSurfaceFormat::CompatibilityProfile);
|
format.setProfile(QSurfaceFormat::CompatibilityProfile);
|
||||||
context->setFormat(format);
|
context->setFormat(format);
|
||||||
|
context->create();
|
||||||
QGLContext *result = QGLContext::fromOpenGLContext(context);
|
QGLContext *result = QGLContext::fromOpenGLContext(context);
|
||||||
result->create();
|
result->create();
|
||||||
|
delete context;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
} // namespace Qt
|
} // namespace Qt
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue