| 1 |
diff --git a/thirdparty/jolt_physics/Jolt/RegisterTypes.cpp b/thirdparty/jolt_physics/Jolt/RegisterTypes.cpp |
| 2 |
index ccfcc1bbe0..e343dd2fa7 100644 |
| 3 |
--- a/thirdparty/jolt_physics/Jolt/RegisterTypes.cpp |
| 4 |
+++ b/thirdparty/jolt_physics/Jolt/RegisterTypes.cpp |
| 5 |
@@ -74,6 +74,10 @@ void RegisterTypesInternal(uint64 inVersionID) |
| 6 |
{ |
| 7 |
Trace("Version mismatch, make sure you compile the client code with the same Jolt version and compiler definitions!"); |
| 8 |
uint64 mismatch = JPH_VERSION_ID ^ inVersionID; |
| 9 |
+ if (mismatch & 0xffffff) |
| 10 |
+ Trace("Client reported version %d.%d.%d, library version is %d.%d.%d.", |
| 11 |
+ (inVersionID >> 16) & 0xff, (inVersionID >> 8) & 0xff, inVersionID & 0xff, |
| 12 |
+ JPH_VERSION_MAJOR, JPH_VERSION_MINOR, JPH_VERSION_PATCH); |
| 13 |
auto check_bit = [mismatch](int inBit, const char *inLabel) { if (mismatch & (uint64(1) << (inBit + 23))) Trace("Mismatching define %s.", inLabel); }; |
| 14 |
check_bit(1, "JPH_DOUBLE_PRECISION"); |
| 15 |
check_bit(2, "JPH_CROSS_PLATFORM_DETERMINISTIC"); |