]> git.tdb.fi Git - libs/gl.git/blobdiff - source/bloom.cpp
Rework exceptions
[libs/gl.git] / source / bloom.cpp
index f1b570bfb7205e395f139d4a90941192a3e4d2e6..76460b993885cb7f71162d22fe32b306ad650495 100644 (file)
@@ -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<int>(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);
 }