Torque3D/Engine/source/gfx/gl
Hein-Pieter van Braam 08622e9601 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.
2015-07-30 22:18:00 +02:00
..
sdl Fix running on Linux / Intel Mesa drivers 2015-07-30 22:18:00 +02:00
tGL Use different extension detection mechanism 2015-07-30 22:18:00 +02:00
util Add OpenGL support. 2014-11-08 20:21:50 +01:00
win32 Update gfxGLDevice.win.cpp 2015-01-19 17:44:48 +01:00
gfxGLAppleFence.cpp Engine directory for ticket #1 2012-09-19 11:15:01 -04:00
gfxGLAppleFence.h Add OpenGL support. 2014-11-08 20:21:50 +01:00
gfxGLCardProfiler.cpp Add OpenGL support. 2014-11-08 20:21:50 +01:00
gfxGLCardProfiler.h Engine directory for ticket #1 2012-09-19 11:15:01 -04:00
gfxGLCircularVolatileBuffer.h Fix GLCircularVolatileBuffer incorrect binding. 2014-12-05 22:56:22 +01:00
gfxGLCubemap.cpp OpenGL: Mipmaps for GFXGLCubemap. Fix compressed textures. 2014-12-27 00:01:21 +01:00
gfxGLCubemap.h Engine directory for ticket #1 2012-09-19 11:15:01 -04:00
gfxGLDevice.cpp gfxGLDevice setShader fix. 2015-06-15 21:10:49 +10:00
gfxGLDevice.h gfxGLDevice setShader fix. 2015-06-15 21:10:49 +10:00
gfxGLDevice.mac.mm Add OpenGL support. 2014-11-08 20:21:50 +01:00
gfxGLDeviceProfiler.cpp Add OpenGL support. 2014-11-08 20:21:50 +01:00
gfxGLEnumTranslate.cpp Add OpenGL support. 2014-11-08 20:21:50 +01:00
gfxGLEnumTranslate.h Add OpenGL support. 2014-11-08 20:21:50 +01:00
gfxGLOcclusionQuery.cpp Add OpenGL support. 2014-11-08 20:21:50 +01:00
gfxGLOcclusionQuery.h Engine directory for ticket #1 2012-09-19 11:15:01 -04:00
gfxGLPrimitiveBuffer.cpp Add OpenGL support. 2014-11-08 20:21:50 +01:00
gfxGLPrimitiveBuffer.h Add OpenGL support. 2014-11-08 20:21:50 +01:00
gfxGLShader.cpp Fix GLSL include when file is empty. 2015-03-08 23:25:23 +01:00
gfxGLShader.h Add OpenGL support. 2014-11-08 20:21:50 +01:00
gfxGLStateBlock.cpp Add OpenGL support. 2014-11-08 20:21:50 +01:00
gfxGLStateBlock.h Add OpenGL support. 2014-11-08 20:21:50 +01:00
gfxGLStateCache.h Add OpenGL support. 2014-11-08 20:21:50 +01:00
gfxGLTextureManager.cpp Add OpenGL support. 2014-11-08 20:21:50 +01:00
gfxGLTextureManager.h Add OpenGL support. 2014-11-08 20:21:50 +01:00
gfxGLTextureObject.cpp OpenGL: Mipmaps for GFXGLCubemap. Fix compressed textures. 2014-12-27 00:01:21 +01:00
gfxGLTextureObject.h OpenGL: Mipmaps for GFXGLCubemap. 2014-12-26 21:03:54 +01:00
gfxGLTextureTarget.cpp OpenGL: Mipmaps for GFXGLCubemap. Fix dynamic cubemaps. 2014-12-27 03:03:33 +01:00
gfxGLTextureTarget.h Add OpenGL support. 2014-11-08 20:21:50 +01:00
gfxGLUtils.h Remove a get* OpenGL function causing CPU-GPU sync point (bad performance). 2015-01-26 01:56:13 +01:00
gfxGLVertexAttribLocation.h Add OpenGL support. 2014-11-08 20:21:50 +01:00
gfxGLVertexBuffer.cpp Add OpenGL support. 2014-11-08 20:21:50 +01:00
gfxGLVertexBuffer.h Add OpenGL support. 2014-11-08 20:21:50 +01:00
gfxGLVertexDecl.cpp Linux implementation. Include changes for gcc x64. 2015-01-24 22:08:26 +01:00
gfxGLVertexDecl.h Add OpenGL support. 2014-11-08 20:21:50 +01:00
gfxGLWindowTarget.cpp revert vsync on reset changes 2014-12-06 20:44:47 +01:00
gfxGLWindowTarget.h Add OpenGL support. 2014-11-08 20:21:50 +01:00