Use different extension detection mechanism
Use different extension detection mechanism

I got this from looking at the code from the glew utility 'glewinfo' on my system it reported the following for GL_ARB_geometry_shader4:  OK [MISSING]. This lead me to believe that there are two different ways of determining extensions. The first 'OK' seems to refer to the entrypoint existing while the second one seems to refer to the extension being available.

The difference is this:
The first OK comes from : GLEW_ARB_geometry_shader4 the global whereas the second 'MISSING' comes from glewGetExtension("GL_ARB_geometry_shader4"). By replacing the gglHasExtension I got the desired result.

We may want to implement some caching if we want to keep using GLEW perhaps?

Anyway I suggest this merely as a test, I'm not sure if this is a viable long-term solution.

lukaspj/Speciality,elfprince13/Torque3D,elfprince13/Torque3D,Azaezel/Torque3D,lukaspj/Speciality,Bloodknight/Torque3D,FITTeamIndecisive/Torque3D,Phantom139/Torque3D,Duion/Torque3D,ValtoGameEngines/Torque3D,John3/Torque3D,chaigler/Torque3D,aaravamudan2014/Torque3D,aaravamudan2014/Torque3D,Torque3D-GameEngine/Torque3D,John3/Torque3D,aaravamudan2014/Torque3D,aaravamudan2014/Torque3D,rextimmy/Torque3D,aaravamudan2014/Torque3D,Duion/Torque3D,Torque3D-GameEngine/Torque3D,FITTeamIndecisive/Torque3D,elfprince13/Torque3D,JeffProgrammer/Torque3D,elfprince13/Torque3D,elfprince13/Torque3D,Phantom139/Torque3D,Azaezel/Torque3D,John3/Torque3D,rextimmy/Torque3D,JeffProgrammer/Torque3D,Duion/Torque3D,ValtoGameEngines/Torque3D,Bloodknight/Torque3D,Phantom139/Torque3D,GarageGames/Torque3D,lukaspj/Speciality,rextimmy/Torque3D,FITTeamIndecisive/Torque3D,FITTeamIndecisive/Torque3D,GarageGames/Torque3D,John3/Torque3D,Torque3D-GameEngine/Torque3D,chaigler/Torque3D,GarageGames/Torque3D,JeffProgrammer/Torque3D,Will-of-the-Wisp/Torque3D,ValtoGameEngines/Torque3D,Duion/Torque3D,Bloodknight/Torque3D,Phantom139/Torque3D,Will-of-the-Wisp/Torque3D,John3/Torque3D,Phantom139/Torque3D,JeffProgrammer/Torque3D,Bloodknight/Torque3D,Torque3D-GameEngine/Torque3D,rextimmy/Torque3D,Will-of-the-Wisp/Torque3D,Duion/Torque3D,Azaezel/Torque3D,chaigler/Torque3D,ValtoGameEngines/Torque3D,Phantom139/Torque3D,lukaspj/Speciality,chaigler/Torque3D,Torque3D-GameEngine/Torque3D,elfprince13/Torque3D,ValtoGameEngines/Torque3D,Torque3D-GameEngine/Torque3D,Azaezel/Torque3D,Azaezel/Torque3D,GarageGames/Torque3D,lukaspj/Speciality,Will-of-the-Wisp/Torque3D,chaigler/Torque3D,FITTeamIndecisive/Torque3D,Azaezel/Torque3D,Azaezel/Torque3D,aaravamudan2014/Torque3D,Bloodknight/Torque3D,Duion/Torque3D,Bloodknight/Torque3D,JeffProgrammer/Torque3D,GarageGames/Torque3D,rextimmy/Torque3D,Duion/Torque3D,ValtoGameEngines/Torque3D,ValtoGameEngines/Torque3D,Phantom139/Torque3D,aaravamudan2014/Torque3D,elfprince13/Torque3D,GarageGames/Torque3D,Torque3D-GameEngine/Torque3D,JeffProgrammer/Torque3D,ValtoGameEngines/Torque3D,lukaspj/Speciality,rextimmy/Torque3D,chaigler/Torque3D,Will-of-the-Wisp/Torque3D,ValtoGameEngines/Torque3D,Phantom139/Torque3D,Phantom139/Torque3D,John3/Torque3D,elfprince13/Torque3D,Will-of-the-Wisp/Torque3D,John3/Torque3D,aaravamudan2014/Torque3D,John3/Torque3D,ValtoGameEngines/Torque3D,rextimmy/Torque3D,Phantom139/Torque3D,Duion/Torque3D,GarageGames/Torque3D,lukaspj/Speciality,Bloodknight/Torque3D,FITTeamIndecisive/Torque3D,lukaspj/Speciality,FITTeamIndecisive/Torque3D,Will-of-the-Wisp/Torque3D,rextimmy/Torque3D,elfprince13/Torque3D,Will-of-the-Wisp/Torque3D,Will-of-the-Wisp/Torque3D,Duion/Torque3D,Will-of-the-Wisp/Torque3D,Azaezel/Torque3D,GarageGames/Torque3D,chaigler/Torque3D,Torque3D-GameEngine/Torque3D,chaigler/Torque3D,FITTeamIndecisive/Torque3D,JeffProgrammer/Torque3D,GarageGames/Torque3D,Torque3D-GameEngine/Torque3D,Torque3D-GameEngine/Torque3D,FITTeamIndecisive/Torque3D,lukaspj/Speciality,John3/Torque3D,aaravamudan2014/Torque3D,Bloodknight/Torque3D,elfprince13/Torque3D,Azaezel/Torque3D,Will-of-the-Wisp/Torque3D,rextimmy/Torque3D,aaravamudan2014/Torque3D,FITTeamIndecisive/Torque3D,Duion/Torque3D,Bloodknight/Torque3D,Azaezel/Torque3D,chaigler/Torque3D,lukaspj/Speciality,rextimmy/Torque3D,John3/Torque3D,JeffProgrammer/Torque3D