Pārlūkot izejas kodu

Merge pull request #31931 from fire/assimp_map_mode

Assimp map mode is not initialized before use.
Rémi Verschelde 6 gadi atpakaļ
vecāks
revīzija
d2900347bf
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      modules/assimp/import_state.h

+ 1 - 1
modules/assimp/import_state.h

@@ -79,7 +79,7 @@ struct ImportState {
 struct AssimpImageData {
 	Ref<Image> raw_image;
 	Ref<ImageTexture> texture;
-	aiTextureMapMode *map_mode = NULL;
+	aiTextureMapMode map_mode[2];
 };
 
 /** Recursive state is used to push state into functions instead of specifying them