]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/program_backend.h
Use default member initializers for simple types
[libs/gl.git] / source / backends / opengl / program_backend.h
index 4ae729e2c95525cc2ef8e102991d0bc25e464632..95df989173df059f7ec59434d2ab56cd275fdca6 100644 (file)
@@ -40,9 +40,9 @@ protected:
                UniformCall(unsigned l, unsigned s, FuncPtr f): location(l), size(s), func(f) { }
        };
 
-       unsigned id;
-       unsigned stage_ids[MAX_STAGES];
-       bool linked;
+       unsigned id = 0;
+       unsigned stage_ids[MAX_STAGES] = { };
+       bool linked = false;
        std::vector<UniformCall> uniform_calls;
        std::string debug_name;