]> 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 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();
 }