Changeset 510


Ignore:
Timestamp:
Nov 12, 2005, 4:30:46 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • src/caca.c: on Unix, do not use the GL driver if DISPLAY is not set.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/caca.c

    r494 r510  
    534534#endif
    535535#if defined(USE_GL)
    536     _caca_driver = CACA_DRIVER_GL;
    537     return;
     536#if defined(HAVE_GETENV) && defined(GLUT_XLIB_IMPLEMENTATION)
     537    if(getenv("DISPLAY") && *(getenv("DISPLAY")))
     538#endif
     539    {
     540        _caca_driver = CACA_DRIVER_GL;
     541        return;
     542    }
    538543#endif
    539544#if defined(USE_SLANG)
Note: See TracChangeset for help on using the changeset viewer.