Upgrade codebase to C++ 20 + fix warnings + update submodules (#6115)

This commit is contained in:
GPUCode
2022-09-21 19:36:12 +03:00
committed by GitHub
parent 90b418fd1a
commit cbd5d1c15c
67 changed files with 6837 additions and 7475 deletions

View File

@ -199,7 +199,7 @@ void Timing::Timer::Advance() {
std::pop_heap(event_queue.begin(), event_queue.end(), std::greater<>());
event_queue.pop_back();
if (evt.type->callback != nullptr) {
evt.type->callback(evt.userdata, executed_ticks - evt.time);
evt.type->callback(evt.userdata, static_cast<int>(executed_ticks - evt.time));
} else {
LOG_ERROR(Core, "Event '{}' has no callback", *evt.type->name);
}