]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/syntax.h
Don't record references to null declarations
[libs/gl.git] / source / glsl / syntax.h
index a3b217d40895f2d6e4ae790abec56082094b6e95..8567555a5d342ef6dfadeab58627fa2ccc0e2ef8 100644 (file)
@@ -525,7 +525,7 @@ struct Stage
        };
 
        Type type;
-       Stage *previous;
+       Stage *previous = 0;
        Block content;
        std::map<std::string, TypeDeclaration *> types;
        std::map<std::string, InterfaceBlock *> interface_blocks;
@@ -533,6 +533,7 @@ struct Stage
        std::map<std::string, unsigned> locations;
        std::map<std::string, unsigned> texture_bindings;
        std::map<std::string, unsigned> uniform_block_bindings;
+       unsigned n_clip_distances = 0;
        Features required_features;
        std::vector<Diagnostic> diagnostics;