summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-12-20 19:13:23 +0100
committerGitHub <noreply@github.com>2018-12-20 19:13:23 +0100
commit25b98e4842b910c07cfa95a797ac9bf43e7bfd94 (patch)
tree76751872601418ace9499dc91806720f7e67760b
parent123710123de4584626c48eff665e9b16eba758fc (diff)
parente24379e61f2d24994fcdb48a8ad236adbab43124 (diff)
Merge pull request #24502 from Shinryuuji/fix-texturelayered-format
Fix TextureLayered::create not retaining format
-rw-r--r--scene/resources/texture.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/texture.cpp b/scene/resources/texture.cpp
index 4f4d375481..a378c517ed 100644
--- a/scene/resources/texture.cpp
+++ b/scene/resources/texture.cpp
@@ -2067,7 +2067,7 @@ void TextureLayered::create(uint32_t p_width, uint32_t p_height, uint32_t p_dept
width = p_width;
height = p_height;
depth = p_depth;
-
+ format = p_format;
flags = p_flags;
}