@@ -153,6 +153,7 @@ bool Texture2D::SetSize(int width, int height, unsigned format, TextureUsage usa
width_ = width;
height_ = height;
format_ = format;
+ depth_ = 1;
multiSample_ = multiSample;
autoResolve_ = autoResolve;
@@ -187,6 +187,7 @@ bool Texture2DArray::SetSize(unsigned layers, int width, int height, unsigned fo
if (layers)
layers_ = layers;
@@ -308,6 +308,7 @@ bool TextureCube::SetSize(int size, unsigned format, TextureUsage usage, int mul
width_ = size;
height_ = size;
autoResolve_ = multiSample > 1;