瀏覽代碼

mac compilation correction - casting flaw

Brian Roberts 6 年之前
父節點
當前提交
f79265089a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Engine/source/T3D/convexShape.cpp

+ 2 - 2
Engine/source/T3D/convexShape.cpp

@@ -724,7 +724,7 @@ void ConvexShape::prepRenderImage( SceneRenderState *state )
 
 
       // We sort by the material then vertex buffer.
       // We sort by the material then vertex buffer.
       ri->defaultKey = matInst->getStateHint();
       ri->defaultKey = matInst->getStateHint();
-      ri->defaultKey2 = (U32)ri->vertBuff; // Not 64bit safe!
+      ri->defaultKey2 = (U32)(uintptr_t)ri->vertBuff; // Not 64bit safe!
 
 
       // Submit our RenderInst to the RenderPassManager
       // Submit our RenderInst to the RenderPassManager
       state->getRenderPass()->addInst(ri);
       state->getRenderPass()->addInst(ri);
@@ -776,7 +776,7 @@ void ConvexShape::buildConvex( const Box3F &box, Convex *convex )
 
 
 bool ConvexShape::buildPolyList( PolyListContext context, AbstractPolyList *plist, const Box3F &box, const SphereF &sphere )
 bool ConvexShape::buildPolyList( PolyListContext context, AbstractPolyList *plist, const Box3F &box, const SphereF &sphere )
 {
 {
-   if ( mGeometry.points.empty() )	
+   if ( mGeometry.points.empty() )
       return false;
       return false;
 
 
    // If we're exporting deal with that first.
    // If we're exporting deal with that first.