Bug 5170 - use GLEW for extension loading
Status: RESOLVED WONTFIX
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Video
Version: GIT MASTER
Hardware: All All
: P3 enhancement
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2011-08-09 12:40 EDT by gimhael
Modified: 2011-09-27 07:13:25 EDT
1 user (show)

See Also:


Attachments
glew.diff (79.09 KB, patch)
2011-08-09 12:40 EDT, gimhael

Description gimhael 2011-08-09 12:40:47 EDT
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.
Comment 1 Thilo Schulz 2011-09-27 07:13:25 EDT
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