]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/sampler.cpp
Move backend information into Device
[libs/gl.git] / source / core / sampler.cpp
index d45dee54242b9f6ef60b9c2fd7bacdc811a3b2ce..4da13833330dac12eace04b145f9ffacd4a0510b 100644 (file)
@@ -1,5 +1,5 @@
 #include <msp/strings/format.h>
-#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;