mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-25 13:51:36 +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 */
|
||||
#undef FS_USERPATH
|
||||
|
||||
/* Define this to the default GL dynamic lib */
|
||||
#undef GL_DRIVER
|
||||
|
||||
/* Define this to use experimental code */
|
||||
#undef _EXPERIMENTAL_
|
||||
|
||||
|
|
15
configure.ac
15
configure.ac
|
@ -1138,6 +1138,20 @@ AC_DEFINE_UNQUOTED(FS_PLUGINPATH, "$expanded_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
|
||||
AC_ARG_ENABLE(debug,
|
||||
[ --disable-debug compile without debugging],
|
||||
|
@ -1906,6 +1920,7 @@ AC_MSG_RESULT([
|
|||
Plugin load directory : $expanded_plugindir
|
||||
Global configuration file : $globalconf
|
||||
User configuration file : $userconf
|
||||
OpenGL dynamic lib : $gl_driver
|
||||
])
|
||||
|
||||
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,
|
||||
"Toggles model animation interpolation");
|
||||
|
||||
#ifdef _WIN32
|
||||
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
|
||||
gl_driver = Cvar_Get ("gl_driver", GL_DRIVER, CVAR_ROM, NULL,
|
||||
"The OpenGL library to use. (path optional)");
|
||||
gl_lightmap_align = Cvar_Get ("gl_lightmap_align", "1", CVAR_NONE, NULL,
|
||||
"Workaround for nvidia slow path. Set to 4 "
|
||||
|
|
Loading…
Reference in a new issue