diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2014-12-07 01:12:00 -0600 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@gmail.com> | 2014-12-07 01:12:00 -0600 |
| commit | 4e98078dafe0075a02c371ae463a4b933ca04d6d (patch) | |
| tree | 763df9bdc5b9e0ca9a58b4bbb9391debe1f6ec69 /Source/Core/VideoCommon/PixelShaderGen.cpp | |
| parent | 9897f7675e9b045156393cfeacb25c74d256b842 (diff) | |
| parent | 9bcadc8029b615d3d447a2a875fd720a73255d11 (diff) | |
Merge pull request #1658 from lioncash/locale
Common: Remove locale based functions from CommonFuncs.
Diffstat (limited to 'Source/Core/VideoCommon/PixelShaderGen.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/PixelShaderGen.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/Source/Core/VideoCommon/PixelShaderGen.cpp b/Source/Core/VideoCommon/PixelShaderGen.cpp index ae27c3f586..4086343699 100644 --- a/Source/Core/VideoCommon/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/PixelShaderGen.cpp @@ -5,10 +5,6 @@ #include <cassert> #include <cmath> #include <cstdio> -#include <locale.h> -#ifdef __APPLE__ - #include <xlocale.h> -#endif #include "VideoCommon/BoundingBox.h" #include "VideoCommon/BPMemory.h" @@ -160,15 +156,6 @@ static inline void GeneratePixelShader(T& out, DSTALPHA_MODE dstAlphaMode, API_T out.SetBuffer(text); const bool is_writing_shadercode = (out.GetBuffer() != nullptr); -#ifndef ANDROID - locale_t locale; - locale_t old_locale; - if (is_writing_shadercode) - { - locale = newlocale(LC_NUMERIC_MASK, "C", nullptr); // New locale for compilation - old_locale = uselocale(locale); // Apply the locale for this thread - } -#endif if (is_writing_shadercode) text[sizeof(text) - 1] = 0x7C; // canary @@ -596,11 +583,6 @@ static inline void GeneratePixelShader(T& out, DSTALPHA_MODE dstAlphaMode, API_T { if (text[sizeof(text) - 1] != 0x7C) PanicAlert("PixelShader generator - buffer too small, canary has been eaten!"); - -#ifndef ANDROID - uselocale(old_locale); // restore locale - freelocale(locale); -#endif } } |
