]> git.tdb.fi Git - libs/gl.git/blobdiff - source/pixelformat.cpp
Rework exceptions
[libs/gl.git] / source / pixelformat.cpp
index 4744ebbdfbad3a61c209be9085a01e15c8e4b1bc..8f742d83c38fcd012e0a46068eb96a0a350820aa 100644 (file)
@@ -1,4 +1,4 @@
-#include "except.h"
+#include <msp/strings/format.h>
 #include "pixelformat.h"
 
 using namespace std;
@@ -54,7 +54,7 @@ PixelFormat pixelformat_from_graphics(Graphics::PixelFormat pf)
        case Graphics::RGBA: return RGBA;
        case Graphics::BGR: return BGR;
        case Graphics::BGRA: return BGRA;
-       default: throw InvalidParameterValue("Unknown Graphics::PixelFormat");
+       default: throw invalid_argument("pixelformat_from_graphics");
        }
 }