Selaa lähdekoodia

Fixed: Initialize all members in MeshHelper

Richard 10 vuotta sitten
vanhempi
commit
c331df69d7
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  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 )
             {}