Only define hasdga if compiled w/ DGA (#ifdef HAS_DGA), so that we avoid

defined but not used error
This commit is contained in:
Loring Holden 2000-04-28 21:14:13 +00:00
parent 168d3e3761
commit 45ca17ab62

View file

@ -107,7 +107,9 @@ static int hasdgavideo = 0, hasvidmode = 0;
#ifdef HAVE_DLOPEN
static void *dlhand = NULL;
#endif
#ifdef HAS_DGA
static int hasdga = 0;
#endif
static GLboolean (*QF_XMesaSetFXmode)(GLint mode) = NULL;