diff --git a/src/libguc/src/cgltf_util.cpp b/src/libguc/src/cgltf_util.cpp index c05f1f8..e169564 100644 --- a/src/libguc/src/cgltf_util.cpp +++ b/src/libguc/src/cgltf_util.cpp @@ -303,8 +303,8 @@ namespace guc const char* cgltf_error_string(cgltf_result result) { - assert(result != cgltf_result_success); - assert(result != cgltf_result_invalid_options); + TF_VERIFY(result != cgltf_result_success); + TF_VERIFY(result != cgltf_result_invalid_options); switch (result) { case cgltf_result_legacy_gltf: diff --git a/src/libguc/src/image.cpp b/src/libguc/src/image.cpp index 1b6d1d7..af41cb3 100644 --- a/src/libguc/src/image.cpp +++ b/src/libguc/src/image.cpp @@ -207,7 +207,7 @@ namespace detail auto image = OIIO::ImageInput::open(path, nullptr, &memReader); if (image) { - assert(image->supports("ioproxy")); + TF_VERIFY(image->supports("ioproxy")); const OIIO::ImageSpec& spec = image->spec(); channelCount = spec.nchannels; diff --git a/src/libguc/src/materialx.cpp b/src/libguc/src/materialx.cpp index f1ec31a..d93e931 100644 --- a/src/libguc/src/materialx.cpp +++ b/src/libguc/src/materialx.cpp @@ -25,7 +25,6 @@ #include #include -#include #include "naming.h" #include "debugCodes.h"