X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Ftexture2dmultisample.cpp;h=8ba52522fde8df1a8f5fd6b14560d571c58f960f;hb=66e4a4d23d114e49743af89e06dee8bdc6f1fbde;hp=1c0106d7dda094396e52104d5d0989bf9a14ed8b;hpb=38712d8ecc57d043a2419ffbaeeb57f7a6586f14;p=libs%2Fgl.git diff --git a/source/core/texture2dmultisample.cpp b/source/core/texture2dmultisample.cpp index 1c0106d7..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); @@ -28,6 +28,11 @@ void Texture2DMultisample::storage(PixelFormat fmt, unsigned wd, unsigned ht, un allocate(); } +void Texture2DMultisample::image(unsigned, const void *) +{ + throw invalid_operation("Texture2DMultisample::image"); +} + void Texture2DMultisample::image(const Graphics::Image &, unsigned) { throw invalid_operation("Texture2DMultisample::image");