dep/reshadefx: Fix float printing regression

This commit is contained in:
Stenzek 2024-07-29 22:05:15 +10:00
parent 8c9a885032
commit 534a82d091
No known key found for this signature in database
2 changed files with 2 additions and 4 deletions

View file

@ -9,7 +9,6 @@
#include <cstdio> // snprintf
#include <cassert>
#include <algorithm> // std::find_if, std::max
#include <iomanip>
#include <locale>
#include <sstream>
#include <unordered_set>
@ -366,7 +365,7 @@ private:
{
std::ostringstream ss;
ss.imbue(std::locale::classic());
ss << std::fixed << data.as_float[i];
ss << data.as_float[i];
s += ss.str();
}
break;

View file

@ -11,7 +11,6 @@
#include <cassert>
#include <cstring> // stricmp
#include <algorithm> // std::find_if, std::max
#include <iomanip>
#include <locale>
#include <sstream>
@ -345,7 +344,7 @@ private:
{
std::ostringstream ss;
ss.imbue(std::locale::classic());
ss << std::fixed << data.as_float[i];
ss << data.as_float[i];
s += ss.str();
}
break;