]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/glsl_error.cpp
Check the flat qualifier from the correct member
[libs/gl.git] / source / glsl / glsl_error.cpp
index aff897ca012c73b249bd63fc12fe5e3e9cfa9299..392682db7b5693c210a5ec9eb495c55cdc824f27 100644 (file)
@@ -19,6 +19,16 @@ parse_error::parse_error(const Location &loc, const string &token, const string
        invalid_shader_source(loc, "Parse error at '%s': expected %s", token, expected)
 { }
 
+
+Diagnostic::Diagnostic(Severity v, int s, unsigned l, const string &m):
+       severity(v),
+       source(s),
+       line(l),
+       provoking_source(s),
+       provoking_line(l),
+       message(m)
+{ }
+
 } // namespace SL
 } // namespace GL
 } // namespace Msp