summaryrefslogtreecommitdiff
path: root/scene/resources/texture.cpp
diff options
context:
space:
mode:
authorYuri Sizov <11782833+YuriSizov@users.noreply.github.com>2023-03-14 13:57:36 +0100
committerGitHub <noreply@github.com>2023-03-14 13:57:36 +0100
commit258ea41ffa00a71bbb6ba9844840f18ba5802816 (patch)
treeb615e78de7fff785e8d5e191b4401da99f44367d /scene/resources/texture.cpp
parent30e81fcc26ee4e9394abe2504c6dd613b06a85db (diff)
parent84e9a79ace17094a3d0f7cde5af2f35ce2c8986f (diff)
Merge pull request #74884 from YuriSizov/4.0-cherrypicks
Cherry-picks for the 4.0 branch (future 4.0.1) - 2nd batch
Diffstat (limited to 'scene/resources/texture.cpp')
-rw-r--r--scene/resources/texture.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/scene/resources/texture.cpp b/scene/resources/texture.cpp
index 05be40c446..651bad1aa7 100644
--- a/scene/resources/texture.cpp
+++ b/scene/resources/texture.cpp
@@ -1232,6 +1232,12 @@ Error ImageTexture3D::create(Image::Format p_format, int p_width, int p_height,
texture = tex;
}
+ format = p_format;
+ width = p_width;
+ height = p_height;
+ depth = p_depth;
+ mipmaps = p_mipmaps;
+
return OK;
}