]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texture3d.cpp
Use default member initializers for simple types
[libs/gl.git] / source / core / texture3d.cpp
index 0fb26ccd6e2606eea34f24cc30fc5e9209ae08c8..e48b7662011deb9b1c81ce5c73014c939ace2c52 100644 (file)
@@ -8,16 +8,7 @@ namespace Msp {
 namespace GL {
 
 Texture3D::Texture3D(unsigned t):
-       Texture3DBackend(t),
-       width(0),
-       height(0),
-       depth(0)
-{ }
-
-Texture3D::Texture3D():
-       width(0),
-       height(0),
-       depth(0)
+       Texture3DBackend(t)
 { }
 
 void Texture3D::storage(PixelFormat fmt, unsigned wd, unsigned ht, unsigned dp, unsigned lv)