]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texture.h
Use default member initializers in Texture
[libs/gl.git] / source / core / texture.h
index f6436c0acc8f6e51d7d8679710bbaf47ad29b67b..24d74964e04dd35c6e8f6092d41b0b854b713c98 100644 (file)
@@ -70,11 +70,11 @@ public:
        };
 
 protected:
-       PixelFormat format;
-       PixelFormat storage_fmt;
-       ComponentSwizzle swizzle;
-       bool use_srgb_format;
-       bool auto_gen_mipmap;
+       PixelFormat format = NO_PIXELFORMAT;
+       PixelFormat storage_fmt = NO_PIXELFORMAT;
+       ComponentSwizzle swizzle = NO_SWIZZLE;
+       bool use_srgb_format = false;
+       bool auto_gen_mipmap = false;
 
        Texture(unsigned);