Просмотр исходного кода

Uninitialized memory and leaks that valgrind was complaining about

Bill Robinson 12 лет назад
Родитель
Сommit
2c4f64765d
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      Core/Contents/Source/PolyScene.cpp

+ 1 - 0
Core/Contents/Source/PolyScene.cpp

@@ -54,6 +54,7 @@ void Scene::initScene(int sceneType, bool virtualScene) {
 	defaultCamera = new Camera(this);
 	activeCamera = defaultCamera;	
 	fogEnabled = false;
+	fogMode = Renderer::FOG_LINEAR;
     overrideMaterial = NULL;
 	lightingEnabled = false;
 	enabled = true;