X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fsyntax.h;h=499779d91faf2e162a2b47ef0b48ca8ab88fed84;hb=ea844415db7fb7705ecbfea9cf27df2a8f00b802;hp=d3797ac415ecb73c222220c1596a82c7fb2b9fed;hpb=f82ef715f0d7e1e7d0b93be4b7b89c8ce6bba40b;p=libs%2Fgl.git diff --git a/source/glsl/syntax.h b/source/glsl/syntax.h index d3797ac4..499779d9 100644 --- a/source/glsl/syntax.h +++ b/source/glsl/syntax.h @@ -525,7 +525,7 @@ struct Stage }; Type type; - Stage *previous; + Stage *previous = 0; Block content; std::map types; std::map interface_blocks; @@ -552,9 +552,10 @@ struct Module }; std::string get_unused_variable_name(const Block &, const std::string &); - +const TypeDeclaration *get_ultimate_base_type(const TypeDeclaration *); int get_layout_value(const Layout &, const std::string &, int = -1); void add_to_chain(Assignment::Target &, Assignment::Target::ChainType, unsigned); +bool targets_overlap(const Assignment::Target &, const Assignment::Target &); } // namespace SL } // namespace GL