X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcontext.cpp;h=4c9b77cd23300bbbaefbf805057b012095ac227e;hb=HEAD;hp=bc2964f3e0fc4396169460273d1b141b016f8e25;hpb=2a685e572e2ab8d9f50129de3f0869628edb3d8e;p=libs%2Fal.git diff --git a/source/context.cpp b/source/context.cpp index bc2964f..4c9b77c 100644 --- a/source/context.cpp +++ b/source/context.cpp @@ -1,11 +1,4 @@ -/* $Id$ - -This file is part of libmspal -Copyright © 2008 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#include +#include #include "context.h" #include "device.h" @@ -16,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); }