Changeset 509


Ignore:
Timestamp:
Nov 12, 2005, 4:26:02 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • src/graphics.c: call glutInit() before calling other glut functions.
File:
1 edited

Legend:

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

    r508 r509  
    995995    if(_caca_driver == CACA_DRIVER_GL)
    996996    {
     997        int argc;
     998        char *argv[2];
    997999        int i;
    9981000        char *empty;
     
    10121014        gl_width = _caca_width * gl_font_width;
    10131015        gl_height = _caca_height * gl_font_height;
     1016
     1017        argc = 1;
     1018        argv[0] = "";
     1019        argv[1] = NULL;
     1020        glutInit(&argc, argv);
    10141021
    10151022        glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE);
Note: See TracChangeset for help on using the changeset viewer.