Quellcode durchsuchen

Do not create cooking

Daniele Bartolini vor 12 Jahren
Ursprung
Commit
ca3cf21d2a
1 geänderte Dateien mit 0 neuen und 6 gelöschten Zeilen
  1. 0 6
      engine/physics/Physics.h

+ 0 - 6
engine/physics/Physics.h

@@ -116,7 +116,6 @@ public:
 	PhysXError m_error;
 	physx::PxFoundation* m_foundation;
 	physx::PxPhysics* m_physics;
-	physx::PxCooking* m_cooking;
 };
 
 //-----------------------------------------------------------------------------
@@ -125,7 +124,6 @@ inline Physics::Physics()
 	, m_px_allocator(m_allocator)
 	, m_foundation(NULL)
 	, m_physics(NULL)
-	, m_cooking(NULL)
 {
 	m_foundation = PxCreateFoundation(PX_PHYSICS_VERSION, m_px_allocator, m_error);
 	CE_ASSERT(m_foundation, "Unable to create PhysX Foundation");
@@ -135,15 +133,11 @@ inline Physics::Physics()
 
 	bool extension = PxInitExtensions(*m_physics);
 	CE_ASSERT(extension, "Unable to initialize PhysX Extensions");
-
-	m_cooking = PxCreateCooking(PX_PHYSICS_VERSION, *m_foundation, physx::PxCookingParams());
-	CE_ASSERT(m_cooking, "Unable to create PhysX Cooking");
 }
 
 //-----------------------------------------------------------------------------
 inline Physics::~Physics()
 {
-	m_cooking->release();
 	PxCloseExtensions();
 	m_physics->release();
 	m_foundation->release();