]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/glsl_error.h
Throw an exception if a feature required by a shader is missing
[libs/gl.git] / source / glsl / glsl_error.h
index 1ae521cae8b05a9085a5195ab2182104e28ffe3f..46ca49be35daf98062a9cff156426fde9882eb6b 100644 (file)
@@ -37,6 +37,13 @@ public:
        virtual ~parse_error() throw() { }
 };
 
+class unsupported_shader: public std::runtime_error
+{
+public:
+       unsupported_shader(const std::string &w): runtime_error(w) { }
+       virtual ~unsupported_shader() throw() { }
+};
+
 } // namespace SL
 } // namespace GL
 } // namespace Msp