Browse Source

Merge pull request #24502 from Shinryuuji/fix-texturelayered-format

Fix TextureLayered::create not retaining format
Rémi Verschelde 6 years ago
parent
commit
25b98e4842
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scene/resources/texture.cpp

+ 1 - 1
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;
 	width = p_width;
 	height = p_height;
 	height = p_height;
 	depth = p_depth;
 	depth = p_depth;
-
+	format = p_format;
 	flags = p_flags;
 	flags = p_flags;
 }
 }