EgtGraphics :

- tolta emissione ridondante di glEnd con OldGraphics.
This commit is contained in:
Dario Sassi
2014-08-30 09:36:20 +00:00
parent aa0881b85e
commit fee81f1faa
+8 -6
View File
@@ -198,17 +198,18 @@ ObjOldGraphics::Draw( int nStat, int nMark, bool bShowAux)
for ( iIter = m_ogaList.begin() ; iIter != m_ogaList.end() ; ++ iIter) {
switch ( iIter->m_nType) {
case OgAtom::START :
bStartA = false ;
glBegin( iIter->m_nMode) ;
bStartA = false ;
break ;
case OgAtom::START_A :
bStartA = true ;
if ( bShowAux)
glBegin( iIter->m_nMode) ;
bStartA = true ;
break ;
case OgAtom::END :
if ( ! bStartA || bShowAux)
glEnd() ;
bStartA = false ;
glEnd() ;
break ;
case OgAtom::VERT :
if ( ! bStartA || bShowAux)
@@ -258,17 +259,18 @@ ObjOldGraphics::Draw( int nStat, int nMark, bool bShowAux)
for ( iIter = m_ogaList.begin() ; iIter != m_ogaList.end() ; ++ iIter) {
switch ( iIter->m_nType) {
case OgAtom::START :
bStartA = false ;
glBegin( iIter->m_nMode) ;
bStartA = false ;
break ;
case OgAtom::START_A :
bStartA = true ;
if ( bShowAux)
glBegin( iIter->m_nMode) ;
bStartA = true ;
break ;
case OgAtom::END :
if ( ! bStartA || bShowAux)
glEnd() ;
bStartA = false ;
glEnd() ;
break ;
case OgAtom::VERT :
if ( ! bStartA || bShowAux)