Przeglądaj źródła

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

Fix TextureLayered::create not retaining format
Rémi Verschelde 6 lat temu
rodzic
commit
25b98e4842
1 zmienionych plików z 1 dodań i 1 usunięć
  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;
 	height = p_height;
 	depth = p_depth;
-
+	format = p_format;
 	flags = p_flags;
 }