Created attachment 2931[details]
glew.diff
The Q3 sdl_glimp contains an adhoc GL extenion loading mechanism to check for extensions and load the GL function pointers. The number of OpenGL extensions has increased a lot since 1999, so if you want to use a "modern" GL extension this extension loader has to be manually extended.
The GLEW library conveniently wraps the GL extension checks and function pointer loading in a simple call to glew_init(), and makes all functions defined in any supported GL extension available to the app.
This patch removes the adhoc extension loader and replaces it with GLEW. The advantage is that new extensions become "automatically" available when GLEW is updated - the disadvantage is an additional dependency on libGLEW.
I don't think we want an additional dependency. This is only for the convenience of the coder but it would be more cumbersome to support this additional dependency in the wild imho
Created attachment 2931 [details] glew.diff The Q3 sdl_glimp contains an adhoc GL extenion loading mechanism to check for extensions and load the GL function pointers. The number of OpenGL extensions has increased a lot since 1999, so if you want to use a "modern" GL extension this extension loader has to be manually extended. The GLEW library conveniently wraps the GL extension checks and function pointer loading in a simple call to glew_init(), and makes all functions defined in any supported GL extension available to the app. This patch removes the adhoc extension loader and replaces it with GLEW. The advantage is that new extensions become "automatically" available when GLEW is updated - the disadvantage is an additional dependency on libGLEW.