2
0
Эх сурвалжийг харах

Fixing some issues Valgrind found

Panagiotis Christopoulos Charitos 10 жил өмнө
parent
commit
5b08dc2bb7

+ 2 - 1
run_callgrind.sh

@@ -1,4 +1,5 @@
 #!/bin/bash
 set -v
 
-PROFILE=1 ANKI_DATA_PATH=$PWD/assets valgrind --tool=callgrind --callgrind-out-file=callgrind.out.tmp --collect-jumps=yes --branch-sim=yes --cache-sim=yes --simulate-wb=yes --cacheuse=yes --simulate-hwpref=yes --separate-threads=yes --I1=32768,2,64 --D1=32768,2,64 --LL=1048576,16,64 $1
+rm callgrind.*
+PROFILE=1 valgrind --tool=callgrind --callgrind-out-file=callgrind.out.tmp --collect-jumps=yes --branch-sim=yes --cache-sim=yes --simulate-wb=yes --cacheuse=yes --simulate-hwpref=yes --separate-threads=yes --I1=32768,2,64 --D1=32768,2,64 --LL=1048576,16,64 $1

+ 1 - 0
src/scene/Sector.cpp

@@ -74,6 +74,7 @@ Error PortalSectorBase::create(const CString& name, const CString& meshFname)
 	ConvexHullShape* hull = alloc.newInstance<ConvexHullShape>();
 	m_shape = hull;
 	hull->initStorage(&m_shapeStorageWSpace[0], vertsCount);
+	updateTransform(Transform::getIdentity());
 
 	// Store indices
 	ANKI_ASSERT(

+ 2 - 2
testapp/Main.cpp

@@ -43,8 +43,8 @@ App* app;
 ModelNode* horse;
 PerspectiveCamera* cam;
 
-#define PLAYER 1
-#define MOUSE 1
+#define PLAYER 0
+#define MOUSE 0
 
 Bool profile = false;