EgtGraphics 1.5h2 :
- corretto errore con OldGraphics - aggiunto a info dato su tipo driver (old/new way).
This commit is contained in:
+5
-3
@@ -173,11 +173,12 @@ ObjOldGraphics::Draw( int nStat, int nMark, bool bShowAux)
|
||||
}
|
||||
|
||||
// ciclo di disegno
|
||||
bool bStartA ;
|
||||
bool bStartA = false ;
|
||||
OGALIST::iterator iIter ;
|
||||
for ( iIter = m_ogaList.begin() ; iIter != m_ogaList.end() ; ++ iIter) {
|
||||
switch ( iIter->m_nType) {
|
||||
case OgAtom::START :
|
||||
bStartA = false ;
|
||||
glBegin( iIter->m_nMode) ;
|
||||
break ;
|
||||
case OgAtom::START_A :
|
||||
@@ -232,11 +233,12 @@ ObjOldGraphics::Draw( int nStat, int nMark, bool bShowAux)
|
||||
glColor4f( colMark.GetRed(), colMark.GetGreen(), colMark.GetBlue(), colMark.GetAlpha()) ;
|
||||
|
||||
// ciclo di disegno
|
||||
bool bStartA ;
|
||||
bool bStartA = false ;
|
||||
OGALIST::iterator iIter ;
|
||||
for ( iIter = m_ogaList.begin() ; iIter != m_ogaList.end() ; ++ iIter) {
|
||||
switch ( iIter->m_nType) {
|
||||
case OgAtom::START :
|
||||
bStartA = false ;
|
||||
glBegin( iIter->m_nMode) ;
|
||||
break ;
|
||||
case OgAtom::START_A :
|
||||
@@ -250,7 +252,7 @@ ObjOldGraphics::Draw( int nStat, int nMark, bool bShowAux)
|
||||
break ;
|
||||
case OgAtom::VERT :
|
||||
if ( ! bStartA || bShowAux)
|
||||
glVertex3fv( iIter->m_fVal) ;
|
||||
glVertex3fv( iIter->m_fVal) ;
|
||||
break ;
|
||||
// non si imposta la normale sono solo curve
|
||||
// non si impostano i colori, si usa quello di marcatura
|
||||
|
||||
Reference in New Issue
Block a user