Skip to content

Commit

Permalink
Replace some asserts with TF_VERIFY
Browse files Browse the repository at this point in the history
  • Loading branch information
pablode committed Nov 9, 2024
1 parent e3029f1 commit aeec120
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/libguc/src/cgltf_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/libguc/src/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/libguc/src/materialx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include <MaterialXFormat/Util.h>

#include <filesystem>
#include <cassert>

#include "naming.h"
#include "debugCodes.h"
Expand Down

0 comments on commit aeec120

Please sign in to comment.