]> 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 4f0bde26960c0db5f4dee5c9a0edd381f86e285e..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();
        virtual ~Texture2D();
 
        /** Defines storage structure for the texture.  If lv is zero, the number