From 9bcadc8029b615d3d447a2a875fd720a73255d11 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 5 Dec 2014 20:54:41 -0500 Subject: Common: Remove locale based functions from CommonFuncs. Since %f isn't used anymore in the shader generators, these can go. --- Source/Core/VideoCommon/PixelShaderGen.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'Source/Core/VideoCommon/PixelShaderGen.cpp') 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 #include #include -#include -#ifdef __APPLE__ - #include -#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 } } -- cgit v1.2.3