From: curt Date: Fri, 14 Mar 2003 02:07:45 +0000 (+0000) Subject: Wire frame mode got broke somehow. This seems to fix it. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c32c8aca51fc4bc0ef155dffe5b0ad4d57ebbc40;p=flightgear.git Wire frame mode got broke somehow. This seems to fix it. --- 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