From c32c8aca51fc4bc0ef155dffe5b0ad4d57ebbc40 Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 14 Mar 2003 02:07:45 +0000 Subject: [PATCH] Wire frame mode got broke somehow. This seems to fix it. --- src/Main/main.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 7a4241257..d154169be 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -709,6 +709,11 @@ void fgRenderFrame() { glEnable( GL_DEPTH_TEST ); ssgSetNearFar( scene_nearplane, scene_farplane ); + + if ( fgGetBool("/sim/rendering/wireframe") ) { + // draw wire frame + glPolygonMode( GL_FRONT_AND_BACK, GL_LINE ); + } ssgCullAndDraw( globals->get_scenery()->get_scene_graph() ); // This is a bit kludgy. Every 200 frames, do an extra