You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix crash in Jolt when doing incremental builds
This commit is contained in:
@@ -74,6 +74,10 @@ void RegisterTypesInternal(uint64 inVersionID)
|
|||||||
{
|
{
|
||||||
Trace("Version mismatch, make sure you compile the client code with the same Jolt version and compiler definitions!");
|
Trace("Version mismatch, make sure you compile the client code with the same Jolt version and compiler definitions!");
|
||||||
uint64 mismatch = JPH_VERSION_ID ^ inVersionID;
|
uint64 mismatch = JPH_VERSION_ID ^ inVersionID;
|
||||||
|
if (mismatch & 0xffffff)
|
||||||
|
Trace("Client reported version %d.%d.%d, library version is %d.%d.%d.",
|
||||||
|
(inVersionID >> 16) & 0xff, (inVersionID >> 8) & 0xff, inVersionID & 0xff,
|
||||||
|
JPH_VERSION_MAJOR, JPH_VERSION_MINOR, JPH_VERSION_PATCH);
|
||||||
auto check_bit = [mismatch](int inBit, const char *inLabel) { if (mismatch & (uint64(1) << (inBit + 23))) Trace("Mismatching define %s.", inLabel); };
|
auto check_bit = [mismatch](int inBit, const char *inLabel) { if (mismatch & (uint64(1) << (inBit + 23))) Trace("Mismatching define %s.", inLabel); };
|
||||||
check_bit(1, "JPH_DOUBLE_PRECISION");
|
check_bit(1, "JPH_DOUBLE_PRECISION");
|
||||||
check_bit(2, "JPH_CROSS_PLATFORM_DETERMINISTIC");
|
check_bit(2, "JPH_CROSS_PLATFORM_DETERMINISTIC");
|
||||||
|
|||||||
Reference in New Issue
Block a user