disable all demos for premake4 iOS build (it only compiles HelloWorld, Benchmark and UnitTest for now)
add btAlignedFree to deleteCriticalSection
This commit is contained in:
@@ -166,7 +166,9 @@ end
|
||||
end
|
||||
|
||||
if not _OPTIONS["without-demos"] then
|
||||
if not _OPTIONS["ios"] then
|
||||
include "../Demos"
|
||||
end
|
||||
include "../Extras"
|
||||
end
|
||||
|
||||
|
||||
@@ -449,6 +449,7 @@ void Win32ThreadSupport::deleteBarrier(btBarrier* barrier)
|
||||
void Win32ThreadSupport::deleteCriticalSection(btCriticalSection* criticalSection)
|
||||
{
|
||||
criticalSection->~btCriticalSection();
|
||||
btAlignedFree(criticalSection);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user