mirror of
https://github.com/edubart/otclient.git
synced 2025-12-14 12:49:47 +01:00
more opengl graphics fixes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user