]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/glsl_error.cpp
Add missing Diagnostic constructor
[libs/gl.git] / source / glsl / glsl_error.cpp
index aff897ca012c73b249bd63fc12fe5e3e9cfa9299..d7bf458ce7782f55ac6e59b830549a66fe27b94d 100644 (file)
@@ -19,6 +19,24 @@ 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(INFO),
+       source(0),
+       line(0),
+       provoking_source(0),
+       provoking_line(0)
+{ }
+
+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