X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbloom.cpp;h=76460b993885cb7f71162d22fe32b306ad650495;hb=e003d7a1497dad3b13e4e88e681f8fa2afc40c83;hp=0ff0c5da34210c2b155150934603dc0fbec2ef5c;hpb=f14435e58bfa0fa697a06ba9a454bb30cd37d9d8;p=libs%2Fgl.git diff --git a/source/bloom.cpp b/source/bloom.cpp index 0ff0c5da..76460b99 100644 --- a/source/bloom.cpp +++ b/source/bloom.cpp @@ -1,5 +1,5 @@ #include -#include +#include #include "blend.h" #include "bloom.h" #include "meshbuilder.h" @@ -95,7 +95,7 @@ Bloom::Bloom(unsigned w, unsigned h): void Bloom::set_radius(float r) { if(r<=0.0f) - throw InvalidParameterValue("Radius must be positive"); + throw out_of_range("Bloom::set_radius"); int size = min(static_cast(r*3.0f), 9); blur_shdata_common.uniform("size", size); @@ -113,7 +113,7 @@ void Bloom::set_radius(float r) void Bloom::set_strength(float s) { if(s<0.0f || s>1.0f) - throw InvalidParameterValue("Strength must be in the range [0.0, 1.0]"); + throw out_of_range("Bloom::set_strength"); combine_shdata.uniform("strength", s); }