Преглед изворни кода

Assimp map mode is not initialized before use.

K. S. Ernest (iFire) Lee пре 6 година
родитељ
комит
1094522d76
1 измењених фајлова са 1 додато и 1 уклоњено
  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