Added additional debug output for bug 3108549.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6660 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
2bf841d95f
commit
0b55b9fe5c
@ -24,6 +24,7 @@ btOptimizedBvh::btOptimizedBvh() : m_useQuantization(false),
|
||||
m_traversalMode(TRAVERSAL_STACKLESS)
|
||||
//m_traversalMode(TRAVERSAL_RECURSIVE)
|
||||
,m_subtreeHeaderCount(0) //PCK: add this line
|
||||
,debug_abort(false)
|
||||
{
|
||||
|
||||
}
|
||||
@ -1355,7 +1356,8 @@ btOptimizedBvh *btOptimizedBvh::deSerializeInPlace(void *i_alignedDataBuffer, un
|
||||
btOptimizedBvh::btOptimizedBvh(btOptimizedBvh &self, bool ownsMemory) :
|
||||
m_bvhAabbMin(self.m_bvhAabbMin),
|
||||
m_bvhAabbMax(self.m_bvhAabbMax),
|
||||
m_bvhQuantization(self.m_bvhQuantization)
|
||||
m_bvhQuantization(self.m_bvhQuantization),
|
||||
debug_abort(false)
|
||||
{
|
||||
|
||||
|
||||
|
@ -176,6 +176,10 @@ ATTRIBUTE_ALIGNED16(class) btOptimizedBvh
|
||||
btVector3 m_bvhAabbMin;
|
||||
btVector3 m_bvhAabbMax;
|
||||
btVector3 m_bvhQuantization;
|
||||
#define KA_DEBUG
|
||||
#ifdef KA_DEBUG
|
||||
mutable bool debug_abort;
|
||||
#endif
|
||||
public:
|
||||
BT_DECLARE_ALIGNED_ALLOCATOR();
|
||||
|
||||
@ -368,6 +372,16 @@ public:
|
||||
<< m_bvhAabbMin.getX()<<" "<< m_bvhAabbMin.getX()
|
||||
<< " "<< m_bvhAabbMin.getX()<<" "
|
||||
<< isMax;
|
||||
printf("in hex: %x %x %x\n",
|
||||
((int*)&point)[0],((int*)&point)[1],((int*)&point)[2]);
|
||||
printf("in hex: %x %x %x\n",
|
||||
((int*)&m_bvhAabbMax)[0],((int*)&m_bvhAabbMax)[1],((int*)&m_bvhAabbMax)[2]);
|
||||
printf("in hex: %x %x %x\n",
|
||||
((int*)&m_bvhAabbMin)[0],((int*)&m_bvhAabbMin)[1],((int*)&m_bvhAabbMin)[2]);
|
||||
#ifdef KA_DEBUG
|
||||
debug_abort=1;
|
||||
return;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
btAssert(point.getX() <= m_bvhAabbMax.getX());
|
||||
@ -442,7 +456,14 @@ public:
|
||||
clampedPoint.setMin(m_bvhAabbMax);
|
||||
|
||||
quantize(out,clampedPoint,isMax);
|
||||
|
||||
#ifdef KA_DEBUG
|
||||
if(debug_abort)
|
||||
{
|
||||
printf("Aborting, original values: %x %x %x\n",
|
||||
((int*)&point2)[0],((int*)&point2)[1],((int*)&point2)[2]);
|
||||
btAssert(false);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
SIMD_FORCE_INLINE btVector3 unQuantize(const unsigned short* vecIn) const
|
||||
|
Loading…
Reference in New Issue
Block a user