Jonathan Gardner writes:
>
>Well, I tried it, and still no luck.
>I just don't understand why I have hardware acceleration with
>everything else, but flightgear just gives me:
>
>Running /usr/bin/fgfs --fg-root=/usr/FlightGear
>FlightGear: Version 0.7.8
>
>Scanning for root: command line
>fg_root = /usr/FlightGear
>Reading global preferences
>Finished Reading global preferences
>Processing command line arguments
>Opening a window: 800x600
>Mesa DRI Voodoo3 20010501 x86/MMX/3DNow!
>Max texture size = 256
>Depth buffer bits = 16
>FATAL: ssgInit called without a valid OpenGL context.
Wow..
I am almost at a loss here
Could you try adding the following code into main.cxx
just befoe the line where ssgInit() is called
// Main loop
int mainLoop( int argc, char **argv ) {
......
#if defined(WIN32)
int glContext = (unsigned long)wglGetCurrentContext();
#elif defined(macintosh)
int glContext = (unsigned long)aglGetCurrentContext();
#else
int glContext = (unsigned long)glXGetCurrentContext();
#endif
SG_LOG( SG_GENERAL, SG_INFO,
"GlContext pointer = " << glContext );
// Initialize ssg (from plib). Needs to come before we do any
// other ssg stuff, but after opengl/glut has been initialized.
ssgInit();
I am interested in what the GLContext pointer is
Cheers
Norman
_______________________________________________
Flightgear-users mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/flightgear-users