mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-25 22:01:33 +00:00
gl_driver default is now configurable
This commit is contained in:
parent
3e4422a9f3
commit
29706477d4
3 changed files with 24 additions and 10 deletions
|
@ -34,6 +34,9 @@
|
||||||
/* Define this to the unshared game directory root */
|
/* Define this to the unshared game directory root */
|
||||||
#undef FS_USERPATH
|
#undef FS_USERPATH
|
||||||
|
|
||||||
|
/* Define this to the default GL dynamic lib */
|
||||||
|
#undef GL_DRIVER
|
||||||
|
|
||||||
/* Define this to use experimental code */
|
/* Define this to use experimental code */
|
||||||
#undef _EXPERIMENTAL_
|
#undef _EXPERIMENTAL_
|
||||||
|
|
||||||
|
|
23
configure.ac
23
configure.ac
|
@ -1138,6 +1138,20 @@ AC_DEFINE_UNQUOTED(FS_PLUGINPATH, "$expanded_plugindir")
|
||||||
AC_SUBST(plugindir)
|
AC_SUBST(plugindir)
|
||||||
AC_SUBST(PLUGINDIR)
|
AC_SUBST(PLUGINDIR)
|
||||||
|
|
||||||
|
AC_ARG_WITH(gl-driver,
|
||||||
|
[ --with-gl-driver default gl dynamic lib name],
|
||||||
|
gl_driver=%withval,
|
||||||
|
gl_driver=auto
|
||||||
|
)
|
||||||
|
if test "$gl_driver" = auto; then
|
||||||
|
if test "$SYSTYPE" = WIN32; then
|
||||||
|
gl_driver="OPENGL32.DLL"
|
||||||
|
else
|
||||||
|
gl_driver="libGL.so.1"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
AC_DEFINE_UNQUOTED(GL_DRIVER, "$gl_driver")
|
||||||
|
|
||||||
dnl CFLAGS for release and devel versions
|
dnl CFLAGS for release and devel versions
|
||||||
AC_ARG_ENABLE(debug,
|
AC_ARG_ENABLE(debug,
|
||||||
[ --disable-debug compile without debugging],
|
[ --disable-debug compile without debugging],
|
||||||
|
@ -1901,11 +1915,12 @@ AC_MSG_RESULT([
|
||||||
Compiler flags : $CFLAGS
|
Compiler flags : $CFLAGS
|
||||||
qfcc cpp invocation: $CPP_NAME
|
qfcc cpp invocation: $CPP_NAME
|
||||||
|
|
||||||
Shared game data directory: $sharepath
|
Shared game data directory : $sharepath
|
||||||
Per-user game data directory: $userpath
|
Per-user game data directory: $userpath
|
||||||
Plugin load directory: $expanded_plugindir
|
Plugin load directory : $expanded_plugindir
|
||||||
Global configuration file: $globalconf
|
Global configuration file : $globalconf
|
||||||
User configuration file: $userconf
|
User configuration file : $userconf
|
||||||
|
OpenGL dynamic lib : $gl_driver
|
||||||
])
|
])
|
||||||
|
|
||||||
if test -d $srcdir/CVS; then
|
if test -d $srcdir/CVS; then
|
||||||
|
|
|
@ -190,11 +190,7 @@ R_Init_Cvars (void)
|
||||||
gl_lerp_anim = Cvar_Get ("gl_lerp_anim", "1", CVAR_ARCHIVE, NULL,
|
gl_lerp_anim = Cvar_Get ("gl_lerp_anim", "1", CVAR_ARCHIVE, NULL,
|
||||||
"Toggles model animation interpolation");
|
"Toggles model animation interpolation");
|
||||||
|
|
||||||
#ifdef _WIN32
|
gl_driver = Cvar_Get ("gl_driver", GL_DRIVER, CVAR_ROM, NULL,
|
||||||
gl_driver = Cvar_Get ("gl_driver", "OPENGL32.DLL", CVAR_ROM, NULL,
|
|
||||||
#else
|
|
||||||
gl_driver = Cvar_Get ("gl_driver", "libGL.so.1", CVAR_ROM, NULL,
|
|
||||||
#endif
|
|
||||||
"The OpenGL library to use. (path optional)");
|
"The OpenGL library to use. (path optional)");
|
||||||
gl_lightmap_align = Cvar_Get ("gl_lightmap_align", "1", CVAR_NONE, NULL,
|
gl_lightmap_align = Cvar_Get ("gl_lightmap_align", "1", CVAR_NONE, NULL,
|
||||||
"Workaround for nvidia slow path. Set to 4 "
|
"Workaround for nvidia slow path. Set to 4 "
|
||||||
|
|
Loading…
Reference in a new issue