From b6d0aedd3637fd4fdaee36b75584e21f74a21734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Delgado=20Kr=C3=A4mer?= Date: Tue, 9 Jul 2024 23:43:06 +0200 Subject: [PATCH] mc/meta: evoke compile error with MDL SDK 2023.1+ --- README.md | 2 +- src/mc/src/MdlNeurayLoader.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 54bc8817..705c821a 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ There are [prebuilt binaries](https://github.com/pablode/gatling/releases) which Alternatively, for a full source build you need to -- download the MDL SDK (2022.0+) binaries +- download the MDL SDK 2023.0.4 binaries - download or build USD 24.03 with MaterialX support > Note: it is recommended to have NASM 2.13+ or YASM 1.2.0+ in your PATH to speed up image decoding. diff --git a/src/mc/src/MdlNeurayLoader.cpp b/src/mc/src/MdlNeurayLoader.cpp index 028c2443..95ba21c0 100644 --- a/src/mc/src/MdlNeurayLoader.cpp +++ b/src/mc/src/MdlNeurayLoader.cpp @@ -31,6 +31,7 @@ #define MI_NEURAYLIB_LATEST_VERSION 52 static_assert(MI_NEURAYLIB_API_VERSION >= 48, "MDL SDK version is too old!"); +static_assert(MI_NEURAYLIB_API_VERSION < 52, "2023.1.X MDL SDK has crash issues - use 2023.0.4 instead!"); static_assert(MI_NEURAYLIB_API_VERSION <= MI_NEURAYLIB_LATEST_VERSION, "Untested MDL SDK version!"); namespace