On Tue, Dec 11, 2001 at 07:28:54PM -0500, Leif Delgass wrote:
>
> I think the point is (but I could be wrong) whether this is
> user-configurable without recoding/recompiling anything, and it seems the
> answer is no. The driver can enable/disable extensions for all apps using
> the driver, or an app using GL through the driver can choose to enable or
> disable extensions supported by the driver. So it's up to the application
> (in this case celstia) to let the user configure which are used, right?
Make the enable/disable configurable by an environment variable, like
so:
if ( getenv( "LIBGL_DISABLE_MULTITEXTURE" ) ) {
gl_extensions_disable( ctx, "GL_ARB_multitexture" );
}
if ( getenv( "LIBGL_ENABLE_TEXTURE_ENV_ADD" ) ) {
gl_extensions_enable( ctx, "GL_EXT_texture_env_add" );
gl_extensions_enable( ctx, "GL_ARB_texture_env_add" );
}
Then, a user/app can just do something equivalent to:
export LIBGL_DISABLE_MULTITEXTURE=1
./my_app
And you're done. Variable naming left as an exercise for the user.
-- Gareth
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel