General: Resolve fmt specifiers to adhere to 8.0.0 API where applicable
Also removes some deprecated API usages.
This commit is contained in:
parent
c3fe071723
commit
d0b1f2bd05
9 changed files with 23 additions and 15 deletions
|
@ -454,7 +454,7 @@ private:
|
|||
|
||||
template <typename... Args>
|
||||
void AddExpression(std::string_view text, Args&&... args) {
|
||||
shader_source += fmt::format(text, std::forward<Args>(args)...);
|
||||
shader_source += fmt::format(fmt::runtime(text), std::forward<Args>(args)...);
|
||||
}
|
||||
|
||||
template <typename... Args>
|
||||
|
|
|
@ -96,7 +96,7 @@ public:
|
|||
// etc).
|
||||
template <typename... Args>
|
||||
void AddLine(std::string_view text, Args&&... args) {
|
||||
AddExpression(fmt::format(text, std::forward<Args>(args)...));
|
||||
AddExpression(fmt::format(fmt::runtime(text), std::forward<Args>(args)...));
|
||||
AddNewLine();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue