Horde3D

Next-Generation Graphics Engine
It is currently 28.03.2024, 11:30

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: OpenGL version checking
PostPosted: 15.05.2010, 17:17 
Offline

Joined: 26.08.2008, 18:48
Posts: 120
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.


Top
 Profile  
Reply with quote  
PostPosted: 17.05.2010, 21:58 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
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 )


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 21 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group