Skip to content

Commit

Permalink
fix GL 4.1 checking on Linux/Mesa like the GL 3.3 checking, allow GL …
Browse files Browse the repository at this point in the history
…3.3 on Mac, ref #28
  • Loading branch information
illwieckz committed Aug 8, 2015
1 parent 7cf050d commit e877f55
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Sources/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,15 +179,13 @@ int main(int argc, char *argv[])

QGLFormat glFormat(QGL::SampleBuffers);

#ifdef Q_OS_MAC
glFormat.setProfile( QGLFormat::CoreProfile );
glFormat.setVersion( 4, 1 );
#endif

#if defined(Q_OS_LINUX) || defined(Q_OS_MAC)
#ifdef USE_OPENGL_330
#ifdef Q_OS_LINUX
glFormat.setProfile( QGLFormat::CoreProfile );
glFormat.setVersion( 3, 3 );
#else
glFormat.setProfile( QGLFormat::CoreProfile );
glFormat.setVersion( 4, 1 );
#endif
#endif

Expand Down

0 comments on commit e877f55

Please sign in to comment.