소스 검색

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