Cpp11 initializers: last src root changeset (#6022)
[oweals/minetest.git] / src / drawscene.cpp
index 59f9b8375ce64882282d13a893f54455840acf30..2cf9689a8e5586b6fe8e3c2800365873169c9911 100644 (file)
@@ -474,7 +474,7 @@ void draw_plain(Camera &camera, bool show_hud,
        // Undersampling-specific stuff
        static video::ITexture *image = NULL;
        static v2u32 last_pixelated_size = v2u32(0, 0);
-       int undersampling = g_settings->getU16("undersampling");
+       static thread_local int undersampling = g_settings->getU16("undersampling");
        v2u32 pixelated_size;
        v2u32 dest_size;
        if (undersampling > 0) {