X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Ftexture2dmultisample.cpp;h=08e7168afd251d5a4379d17d52383417de546706;hb=HEAD;hp=8ba52522fde8df1a8f5fd6b14560d571c58f960f;hpb=d16d28d2ccf7c6255204f02975834f713ff1df08;p=libs%2Fgl.git diff --git a/source/core/texture2dmultisample.cpp b/source/core/texture2dmultisample.cpp index 8ba52522..08e7168a 100644 --- a/source/core/texture2dmultisample.cpp +++ b/source/core/texture2dmultisample.cpp @@ -24,6 +24,7 @@ void Texture2DMultisample::storage(PixelFormat fmt, unsigned wd, unsigned ht, un width = wd; height = ht; samples = sm; + n_levels = 1; allocate(); } @@ -38,10 +39,5 @@ void Texture2DMultisample::image(const Graphics::Image &, unsigned) throw invalid_operation("Texture2DMultisample::image"); } -uint64_t Texture2DMultisample::get_data_size() const -{ - return id ? width*height*get_pixel_size(format)*samples : 0; -} - } // namespace GL } // namespace Msp