mirror of https://github.com/CGAL/cgal
Try something else
This commit is contained in:
parent
7c6bbaaea0
commit
02eb3648ad
|
|
@ -28,17 +28,12 @@ namespace internal_test{
|
||||||
int& code_to_call_before_creation_of_QCoreApplication(int& i) {
|
int& code_to_call_before_creation_of_QCoreApplication(int& i) {
|
||||||
QSurfaceFormat fmt;
|
QSurfaceFormat fmt;
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
std::cout<<"Running on mac"<<std::endl;
|
fmt.setVersion(4, 1);
|
||||||
fmt.setDepthBufferSize(24);
|
|
||||||
fmt.setStencilBufferSize(8);
|
|
||||||
fmt.setVersion(2,0);
|
|
||||||
fmt.setRenderableType(QSurfaceFormat::OpenGLES);
|
|
||||||
fmt.setSamples(0);
|
|
||||||
#else
|
#else
|
||||||
fmt.setVersion(4, 3);
|
fmt.setVersion(4, 3);
|
||||||
|
#endif
|
||||||
fmt.setRenderableType(QSurfaceFormat::OpenGL);
|
fmt.setRenderableType(QSurfaceFormat::OpenGL);
|
||||||
fmt.setProfile(QSurfaceFormat::CoreProfile);
|
fmt.setProfile(QSurfaceFormat::CoreProfile);
|
||||||
#endif
|
|
||||||
fmt.setOption(QSurfaceFormat::DebugContext);
|
fmt.setOption(QSurfaceFormat::DebugContext);
|
||||||
QSurfaceFormat::setDefaultFormat(fmt);
|
QSurfaceFormat::setDefaultFormat(fmt);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue