Merge branch 'better-gl' into v2.15.x
[dcpomatic.git] / src / lib / exceptions.cc
index 9350430f9b96fd912b9c4d2181a152e561dac65e..3f87a2ebe142893bba046fca25075b7423716faa 100644 (file)
@@ -125,13 +125,20 @@ KDMError::KDMError (string s, string d)
 }
 
 
-GLError::GLError (char const * last, int e)
+GLError::GLError (char const* last, int e)
        : runtime_error (String::compose("%1 failed %2", last, 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)