]> git.sesse.net Git - movit/blobdiff - effect_chain.cpp
Drop setting the locale altogether.
[movit] / effect_chain.cpp
index 81613e69fba3c602ad9116b4b66e6f0cc8a239c5..21c4a0d1d2cf84e8a2eb3f80153715557aab8d1c 100644 (file)
@@ -2,7 +2,6 @@
 
 #include <epoxy/gl.h>
 #include <assert.h>
-#include <locale.h>
 #include <math.h>
 #include <stddef.h>
 #include <stdio.h>
@@ -1330,11 +1329,6 @@ Node *EffectChain::find_output_node()
 
 void EffectChain::finalize()
 {
-       // Save the current locale, and set it to C, so that we can output decimal
-       // numbers with printf and be sure to get them in the format mandated by GLSL.
-       locale_t c_locale = newlocale(LC_NUMERIC_MASK, "C", (locale_t)0);
-       locale_t saved_locale = uselocale(c_locale);
-
        // Output the graph as it is before we do any conversions on it.
        output_dot("step0-start.dot");
 
@@ -1397,8 +1391,6 @@ void EffectChain::finalize()
        assert(phases[0]->inputs.empty());
        
        finalized = true;
-       uselocale(saved_locale);
-       freelocale(c_locale);
 }
 
 void EffectChain::render_to_fbo(GLuint dest_fbo, unsigned width, unsigned height)