EgtInterface :

- piccole migliorie.
This commit is contained in:
Dario Sassi
2014-09-05 07:49:15 +00:00
parent e6bfb96cc5
commit 5e1d91137d
+5 -2
View File
@@ -35,8 +35,10 @@ __stdcall EgtInitGeomDB( void)
VERIFY_NULL( Get( pGeomDB), "Error in CreateGeomDB", 0)
// creo e recupero un contesto libero
int nGseCtx = CreateGseContext() ;
if ( nGseCtx == 0)
if ( nGseCtx == 0) {
LOG_ERROR( GetLogger(), "Error in CreateGseContext (" __FUNCTION__ ")")
return 0 ;
}
GseContext* pGseCtx = GetGseContext( nGseCtx) ;
// inserisco il GeomDB nel contesto
pGseCtx->m_pGeomDB = Release( pGeomDB) ;
@@ -44,7 +46,8 @@ __stdcall EgtInitGeomDB( void)
pGseCtx->m_pGeomDB->SetDefaultMaterial( pGseCtx->m_colDef) ;
// log avvio DB geometrico
LOG_INFO( GetLogger(), "GeomDB started")
string sLog = "GeomDB started " + ToString( nGseCtx) ;
LOG_INFO( GetLogger(), sLog.c_str())
return nGseCtx ;
}