]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texture2d.h
Use default member initializers for simple types
[libs/gl.git] / source / core / texture2d.h
index a2454b76b3e613dd552599a2e545d7aef4716d0a..209cede5843535a40b888c872f6be88909fd8436 100644 (file)
@@ -32,12 +32,11 @@ public:
        };
 
 private:
-       unsigned width;
-       unsigned height;
-       unsigned levels;
+       unsigned width = 0;
+       unsigned height = 0;
+       unsigned levels = 0;
 
 public:
-       Texture2D(ResourceManager * = 0);
        virtual ~Texture2D();
 
        /** Defines storage structure for the texture.  If lv is zero, the number