From c7c63901d0ab19bab642bfe8a7327315d5f460f6 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sun, 9 Sep 2007 02:33:32 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1303 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/rendergl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/src/rendergl.cpp b/source/src/rendergl.cpp index e8b01e17..14e0ce23 100644 --- a/source/src/rendergl.cpp +++ b/source/src/rendergl.cpp @@ -39,7 +39,6 @@ void gl_init(int w, int h, int bpp, int depth, int fsaa) glEnable(GL_LINE_SMOOTH); glHint(GL_LINE_SMOOTH_HINT, GL_NICEST); - glEnable(GL_POLYGON_OFFSET_LINE); glPolygonOffset(-3.0, -3.0); glCullFace(GL_FRONT); @@ -683,9 +682,11 @@ void gl_drawframe(int w, int h, float changelod, float curfps) if(editmode) { if(cursordepth==1.0f) worldpos = camera1->o; + glEnable(GL_POLYGON_OFFSET_LINE); glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); cursorupdate(); glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); + glDisable(GL_POLYGON_OFFSET_LINE); } extern vector verts;