Sfoglia il codice sorgente

Fix TextureLayered::create not retaining format

Shinryuuji 6 anni fa
parent
commit
e24379e61f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;
 }