X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Ftexture2dmultisample.cpp;h=08e7168afd251d5a4379d17d52383417de546706;hp=72c5f129782c7a98dabbfbc7ae1e01706f0730a3;hb=560b11de262a6cae2c71d744598bf3fd435ab14f;hpb=94cadd1618f93239b1cb0acbd4f958257c035c98 diff --git a/source/core/texture2dmultisample.cpp b/source/core/texture2dmultisample.cpp index 72c5f129..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(); }