]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - plugins/shaders/shaders.cpp
gcc: appease the hardening warnings
[xonotic/netradiant.git] / plugins / shaders / shaders.cpp
index 99dac811d9a4baf2ff882d1b8876ff04ad7abd61..abf0ac9fa82a18462c909fa90672ae361270c2f9 100644 (file)
@@ -789,7 +789,7 @@ evaluateTexture(const TextureExpression &texture, const ShaderParameters &params
 float evaluateFloat(const ShaderValue &value, const ShaderParameters &params, const ShaderArguments &args)
 {
     const char *result = evaluateShaderValue(value.c_str(), params, args);
-    float f;
+    float f = 0;
     if (!string_parse_float(result, f)) {
         globalErrorStream() << "parsing float value failed: " << makeQuoted(result) << "\n";
     }