Sfoglia il codice sorgente

* src/caca.c: on Unix, do not use the GL driver if DISPLAY is not set.

tags/v0.99.beta14
Sam Hocevar sam 19 anni fa
parent
commit
c55e00fe59
1 ha cambiato i file con 7 aggiunte e 2 eliminazioni
  1. +7
    -2
      src/caca.c

+ 7
- 2
src/caca.c Vedi File

@@ -533,8 +533,13 @@ static void caca_init_driver(void)
}
#endif
#if defined(USE_GL)
_caca_driver = CACA_DRIVER_GL;
return;
#if defined(HAVE_GETENV) && defined(GLUT_XLIB_IMPLEMENTATION)
if(getenv("DISPLAY") && *(getenv("DISPLAY")))
#endif
{
_caca_driver = CACA_DRIVER_GL;
return;
}
#endif
#if defined(USE_SLANG)
_caca_driver = CACA_DRIVER_SLANG;


Caricamento…
Annulla
Salva