mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Compile fix on 32-bit or non-windows with analytics enabled
This commit is contained in:
@@ -37,6 +37,12 @@
|
||||
|
||||
#if RENDERDOC_ANALYTICS_ENABLE
|
||||
|
||||
template <>
|
||||
inline const char *TypeName<int32_t>()
|
||||
{
|
||||
return "int";
|
||||
}
|
||||
|
||||
template <>
|
||||
inline const char *TypeName<QString>()
|
||||
{
|
||||
@@ -314,7 +320,10 @@ void AnalyticsSerialise(Analytics &serdb, QVariantMap &values, AnalyticsSerialis
|
||||
{
|
||||
bool reporting = type == AnalyticsSerialiseType::Reporting;
|
||||
|
||||
// only check this on 64-bit as it is different on 32-bit
|
||||
#if QT_POINTER_SIZE == 8 && defined(Q_OS_WIN32)
|
||||
static_assert(sizeof(Analytics) == 147, "Sizeof Analytics has changed - update serialisation.");
|
||||
#endif
|
||||
|
||||
QString doc;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user