소스 검색

Fixed: Initialize all members in MeshHelper

Richard 10 년 전
부모
커밋
c331df69d7
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      tools/assimp_view/AssetHelper.h

+ 4 - 0
tools/assimp_view/AssetHelper.h

@@ -145,6 +145,7 @@ namespace AssimpView {
 
             MeshHelper()
                 :
+                eShadingMode(),
                 piVB( NULL ),
                 piIB( NULL ),
                 piVBNormals( NULL ),
@@ -158,6 +159,9 @@ namespace AssimpView {
                 piOpacityTexture( NULL ),
                 piShininessTexture( NULL ),
                 piLightmapTexture( NULL ),
+                fOpacity(),
+                fShininess(),
+                fSpecularStrength()
                 twosided( false ),
                 pvOriginalNormals( NULL )
             {}