Commit 4a8d66b4 authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed fix of version check

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11611 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 963fd9a9
......@@ -286,12 +286,13 @@ inline bool openGLVersion( const int _major, const int _minor ) {
int minor;
stream >> minor;
if ( ((_major >= major) || ( (_major < major) && (_minor>= minor)) ) ) {
if ( (_major < major) || ( (_major == major) && (_minor < minor)) ) {
std::cerr << "OpenGL Version check failed. Required : " << _major << "." << _minor << std::endl;
std::cerr << "OpenGL Version check failed. Available : " << major << "." << minor << std::endl;
return false;
}
return ((_major >= major) && (_minor>= minor));
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment