Initialize variable to silence valgrind warning.
authorMartin Lambers <marlam@marlam.de>
Fri, 14 Dec 2018 12:52:30 +0000 (13:52 +0100)
committerMartin Lambers <marlam@marlam.de>
Fri, 14 Dec 2018 12:52:30 +0000 (13:52 +0100)
libcamsim/importer.cpp

index c324568..9ad893b 100644 (file)
@@ -164,7 +164,7 @@ static unsigned int createTex(
     auto gl = getGlFunctionsFromCurrentContext(Q_FUNC_INFO);
 
     aiString path;
-    aiTextureMapMode mapmode;
+    aiTextureMapMode mapmode = aiTextureMapMode_Decal;
     m->GetTexture(t, i, &path, NULL, NULL, NULL, NULL, &mapmode);
 
     QString fileName = baseDir + '/' + path.C_Str();