more opengl graphics fixes

This commit is contained in:
Eduardo Bart
2012-06-02 15:58:30 -03:00
parent cde81666b8
commit 257f652bb7
13 changed files with 34 additions and 15 deletions

View File

@@ -80,8 +80,9 @@ void Logger::fireOldMessages()
{
if(m_onLog) {
auto backup = m_logMessages;
for(const LogMessage& logMessage : backup)
for(const LogMessage& logMessage : backup) {
m_onLog(logMessage.level, logMessage.message, logMessage.when);
}
}
}

View File

@@ -48,7 +48,7 @@ public:
void info(const std::string& what) { log(Fw::LogInfo, what); }
void warning(const std::string& what) { log(Fw::LogWarning, what); }
void error(const std::string& what) { log(Fw::LogError, what); }
void fatal(const std::string& what) { log(Fw::LogError, what); }
void fatal(const std::string& what) { log(Fw::LogFatal, what); }
void fireOldMessages();
void setLogFile(const std::string& file);