]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texture2dmultisample.cpp
Set mip levels of multisample textures to 1
[libs/gl.git] / source / core / texture2dmultisample.cpp
index 8ba52522fde8df1a8f5fd6b14560d571c58f960f..08e7168afd251d5a4379d17d52383417de546706 100644 (file)
@@ -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