Commit 85e4d378 authored by idr's avatar idr
Browse files

Update the set of GLX extensions that are "magically" enabled if the server

reports GLX 1.3 support.
parent 7f8313ff
......@@ -368,9 +368,6 @@ __glXGetClientExtensions( void )
* \param display_is_direct_capable True if the display is capable of
* direct rendering.
* \param minor_version GLX minor version from the server.
*
* \todo Once libGL has full GLX 1.3 support, remove the SGI_make_current_read
* hack.
*/
void
......@@ -388,13 +385,25 @@ __glXCalculateUsableExtensions( __GLXscreenConfigs *psc,
/* This is a hack. Some servers support GLX 1.3 but don't export
* SGI_make_current_read. This libGL supports SGI_make_current_read but
* doesn't have full GLX 1.3 support. Until GLX 1.3 is fully supported
* this hack is done to export the functionality to applications.
* all of the extensions implied by GLX 1.3. If the server claims
* support for GLX 1.3, enable support for the extensions that can be
* "emulated" as well.
*/
if ( minor_version >= 3 ) {
SET_BIT( server_support, EXT_visual_info_bit );
SET_BIT( server_support, EXT_visual_rating_bit );
SET_BIT( server_support, SGI_make_current_read_bit );
SET_BIT( server_support, SGIX_fbconfig_bit );
SET_BIT( server_support, SGIX_pbuffer_bit );
/* This one is a little iffy. GLX 1.3 doesn't incorporate all of this
* extension. However, the only part that is not strictly client-side
* is shared. That's the glXQueryContext / glXQueryContextInfoEXT
* function.
*/
SET_BIT( server_support, EXT_import_context_bit );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment