Horde3D
http://horde3d.org/forums/

OpenGL version checking
http://horde3d.org/forums/viewtopic.php?f=3&t=1163
Page 1 of 1

Author:  attila [ 15.05.2010, 17:17 ]
Post subject:  OpenGL version checking

In egRendererBase.cpp:

Code:
   // Check that OpenGL 2.0 is available
   if( glExt::majorVersion < 2 || glExt::minorVersion < 0 )
   {
      Modules::log().writeError( "OpenGL 2.0 not available" );
      failed = true;
   }

I think this checking is not correct. It causes no problem now becase minorVersion
is never negative. But if it would look like this

Code:
   if( glExt::majorVersion < 2 || glExt::minorVersion < 1 )


It would falsely tell that is not OpenGL2.1 support for 3.0 version.

Author:  marciano [ 17.05.2010, 21:58 ]
Post subject:  Re: OpenGL version checking

Thanks, you are right that a check for GL 2.1 would not work like that. The following should be ok:
Code:
if( glExt::majorVersion * 10 + glExt::minorVersion < 20 )

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/