Add new GLError constructor.
[dcpomatic.git] / src / lib / exceptions.cc
index ebb607b9476b77f7969f81c3d5f78d18e1a0f68e..3f87a2ebe142893bba046fca25075b7423716faa 100644 (file)
@@ -132,6 +132,13 @@ GLError::GLError (char const* last, int e)
 }
 
 
+GLError::GLError (char const* message)
+       : runtime_error (message)
+{
+
+}
+
+
 CopyError::CopyError (string m, optional<int> n)
        : runtime_error (String::compose("%1%2", m, n ? String::compose(" (%1)", *n) : ""))
        , _message (m)