]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/glsl_error.h
Make the GLSL parser resilient against common errors
[libs/gl.git] / source / glsl / glsl_error.h
index 46ca49be35daf98062a9cff156426fde9882eb6b..1b005e0fc9db96c4230a9268fc8cc54e7eedf1f5 100644 (file)
@@ -13,6 +13,7 @@ struct Location;
 class invalid_shader_source: public std::runtime_error
 {
 public:
+       invalid_shader_source(const std::string &w): runtime_error(w) { }
        invalid_shader_source(const Location &, const std::string &);
 #if __cplusplus>=201103L
        template<typename... Args>