From ef3ade08d3b280b3a1c7ae479337a077a4ed3eaa Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 20 Jan 2020 00:42:40 +0100 Subject: [PATCH] - silence debug diagnostics for non-test builds --- source/duke3d/src/anim.cpp | 3 ++- source/rr/src/anim.cpp | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/source/duke3d/src/anim.cpp b/source/duke3d/src/anim.cpp index 28c9b1674..a0748abc0 100644 --- a/source/duke3d/src/anim.cpp +++ b/source/duke3d/src/anim.cpp @@ -392,8 +392,9 @@ int32_t Anim_Play(const char *fn) } while (timerGetTicks() < nextframetime); } while (running); GLInterface.EnableNonTransparent255(false); - +#ifdef DEBUGGINGAIDS animvpx_print_stats(&codec); +#endif // animvpx_restore_glstate(); diff --git a/source/rr/src/anim.cpp b/source/rr/src/anim.cpp index b01da71be..4096a7fdf 100644 --- a/source/rr/src/anim.cpp +++ b/source/rr/src/anim.cpp @@ -423,7 +423,9 @@ int32_t Anim_Play(const char *fn) } while (running); GLInterface.EnableNonTransparent255(false); - animvpx_print_stats(&codec); + #ifdef DEBUGGINGAIDS + animvpx_print_stats(&codec); + #endif // animvpx_restore_glstate();