X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Ftexture2dmultisample.cpp;h=8ba52522fde8df1a8f5fd6b14560d571c58f960f;hp=ce35bdb795afb5487c226856eabf94b9f945d316;hb=d16d28d2ccf7c6255204f02975834f713ff1df08;hpb=fb04f4ef9162f58f494cf4323cf3dc66b2f3d4ac diff --git a/source/core/texture2dmultisample.cpp b/source/core/texture2dmultisample.cpp index ce35bdb7..8ba52522 100644 --- a/source/core/texture2dmultisample.cpp +++ b/source/core/texture2dmultisample.cpp @@ -1,4 +1,4 @@ -#include "deviceinfo.h" +#include "device.h" #include "error.h" #include "texture2dmultisample.h" @@ -17,7 +17,7 @@ void Texture2DMultisample::storage(PixelFormat fmt, unsigned wd, unsigned ht, un } if(wd==0 || ht==0) throw invalid_argument("Texture2DMultisample::storage"); - if(!sm || sm>DeviceInfo::get_global().limits.max_samples) + if(!sm || sm>Device::get_current().get_info().limits.max_samples) throw invalid_argument("Texture2DMultisample::storage"); set_format(fmt);