1
0
Fork 0

Only use GLUT_STENCIL if the instument panel has been requested.

This commit is contained in:
curt 1998-09-09 16:25:39 +00:00
parent 44a9f9e26a
commit 723f54c78b

View file

@ -771,7 +771,12 @@ int fgGlutInit( int *argc, char **argv ) {
xglutInit(argc, argv); xglutInit(argc, argv);
// Define Display Parameters // Define Display Parameters
xglutInitDisplayMode( GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE | GLUT_STENCIL); if ( ! current_options.get_panel_status() ) {
xglutInitDisplayMode( GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE );
} else {
xglutInitDisplayMode( GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE |
GLUT_STENCIL);
}
// Define initial window size // Define initial window size
xglutInitWindowSize(640, 480); xglutInitWindowSize(640, 480);
@ -884,6 +889,9 @@ int main( int argc, char **argv ) {
// $Log$ // $Log$
// Revision 1.49 1998/09/09 16:25:39 curt
// Only use GLUT_STENCIL if the instument panel has been requested.
//
// Revision 1.48 1998/08/28 18:15:03 curt // Revision 1.48 1998/08/28 18:15:03 curt
// Added new cockpit code from Friedemann Reinhard // Added new cockpit code from Friedemann Reinhard
// <mpt218@faupt212.physik.uni-erlangen.de> // <mpt218@faupt212.physik.uni-erlangen.de>