From: erg Date: Thu, 19 Aug 2010 21:39:07 +0000 (+0000) Subject: Fix bug of nested glBegin()'s X-Git-Tag: LAST_LIBGRAPH~32^2~1223 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a499dded74b1df2875da157a3d9a4b72b02364f4;p=graphviz Fix bug of nested glBegin()'s --- diff --git a/cmd/smyrna/topviewfuncs.c b/cmd/smyrna/topviewfuncs.c index 03a75c30c..d54cc2844 100644 --- a/cmd/smyrna/topviewfuncs.c +++ b/cmd/smyrna/topviewfuncs.c @@ -655,13 +655,12 @@ static void renderEdges(Agraph_t * g) x=parseXdotwithattrs(e); draw_xdot(x,0); - if(x) freeXDot (x); } } - glBegin(GL_LINES); + if (drawSegs) glBegin(GL_LINES); for (v = agfstnode(g); v; v = agnxtnode(g, v)) { for (e = agfstout(g, v); e; e = agnxtout(g, e)) @@ -690,7 +689,7 @@ static void renderEdges(Agraph_t * g) } } } - glEnd(); + if (drawSegs) glEnd(); } static void renderNodeLabels(Agraph_t * g)