]> git.tdb.fi Git - libs/gl.git/commitdiff
Set mip levels of multisample textures to 1
authorMikko Rasa <tdb@tdb.fi>
Tue, 19 Apr 2022 08:40:32 +0000 (11:40 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 19 Apr 2022 08:45:11 +0000 (11:45 +0300)
source/core/texture2dmultisample.cpp

index 72c5f129782c7a98dabbfbc7ae1e01706f0730a3..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();
 }