X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fsampler.cpp;h=4da13833330dac12eace04b145f9ffacd4a0510b;hp=d45dee54242b9f6ef60b9c2fd7bacdc811a3b2ce;hb=d16d28d2ccf7c6255204f02975834f713ff1df08;hpb=fb04f4ef9162f58f494cf4323cf3dc66b2f3d4ac diff --git a/source/core/sampler.cpp b/source/core/sampler.cpp index d45dee54..4da13833 100644 --- a/source/core/sampler.cpp +++ b/source/core/sampler.cpp @@ -1,5 +1,5 @@ #include -#include "deviceinfo.h" +#include "device.h" #include "error.h" #include "sampler.h" @@ -38,7 +38,7 @@ void Sampler::set_max_anisotropy(float a) { if(a<1.0f) throw invalid_argument("Sampler::set_max_anisotropy"); - if(a>DeviceInfo::get_global().limits.max_anisotropy) + if(a>Device::get_current().get_info().limits.max_anisotropy) throw out_of_range("Sampler::set_max_anisotropy"); bool supported = check_anisotropic(a>1.0f); max_anisotropy = a;