Try something else

This commit is contained in:
Maxime Gimeno 2021-01-07 11:43:13 +01:00
parent 7c6bbaaea0
commit 02eb3648ad
1 changed files with 2 additions and 7 deletions

View File

@ -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);