X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Ftexture2dmultisample.cpp;h=08e7168afd251d5a4379d17d52383417de546706;hb=857e0a3f684fba4810260697a78a769dff514f1f;hp=72c5f129782c7a98dabbfbc7ae1e01706f0730a3;hpb=f73e671dcb36c097647cddbf5b1eaaad2ffc9299;p=libs%2Fgl.git 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(); }