Skip to content

Commit

Permalink
dep/reshadefx: Fix float printing regression
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Jul 29, 2024
1 parent 8c9a885 commit 534a82d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions dep/reshadefx/src/effect_codegen_glsl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -366,7 +365,7 @@ class codegen_glsl final : public codegen
{
std::ostringstream ss;
ss.imbue(std::locale::classic());
ss << std::fixed << data.as_float[i];
ss << data.as_float[i];
s += ss.str();
}
break;
Expand Down
3 changes: 1 addition & 2 deletions dep/reshadefx/src/effect_codegen_hlsl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include <cassert>
#include <cstring> // stricmp
#include <algorithm> // std::find_if, std::max
#include <iomanip>
#include <locale>
#include <sstream>

Expand Down Expand Up @@ -345,7 +344,7 @@ class codegen_hlsl final : public codegen
{
std::ostringstream ss;
ss.imbue(std::locale::classic());
ss << std::fixed << data.as_float[i];
ss << data.as_float[i];
s += ss.str();
}
break;
Expand Down

0 comments on commit 534a82d

Please sign in to comment.