X-Git-Url: http://git.tdb.fi/?p=libs%2Fal.git;a=blobdiff_plain;f=source%2Fcontext.cpp;h=4c9b77cd23300bbbaefbf805057b012095ac227e;hp=14f607cdd9778a6cdcb87bef5aaadc43c9ed5057;hb=dfec8f9568d11c432038d55f3ceb35d59614777d;hpb=14008b157c64752ba7c1cef831124992c35c4646 diff --git a/source/context.cpp b/source/context.cpp index 14f607c..4c9b77c 100644 --- a/source/context.cpp +++ b/source/context.cpp @@ -1,4 +1,4 @@ -#include +#include #include "context.h" #include "device.h" @@ -9,7 +9,7 @@ Context::Context(Device &dev) { context = alcCreateContext(dev.get_device(), 0); if(!context) - throw Exception("Couldn't create OpenAL context"); + throw std::runtime_error("Couldn't create OpenAL context"); alcMakeContextCurrent(context); }