From 5e9dac49a8649bcfbeb63489862137082ff85a99 Mon Sep 17 00:00:00 2001 From: Wojciech Figat Date: Tue, 1 Feb 2022 17:38:55 +0100 Subject: [PATCH] Remove breakpoint on OpenAL error --- Source/Engine/Audio/OpenAL/AudioBackendOAL.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/Engine/Audio/OpenAL/AudioBackendOAL.cpp b/Source/Engine/Audio/OpenAL/AudioBackendOAL.cpp index 3e6a86987..2275e8bdc 100644 --- a/Source/Engine/Audio/OpenAL/AudioBackendOAL.cpp +++ b/Source/Engine/Audio/OpenAL/AudioBackendOAL.cpp @@ -24,7 +24,14 @@ #if BUILD_RELEASE #define ALC_CHECK_ERROR(method) #else -#define ALC_CHECK_ERROR(method) { int alError = alGetError(); if (alError != 0) { LOG(Error, "OpenAL method {0} failed with error 0x{1:X} (at line {2})", TEXT(#method), alError, __LINE__ - 1); PLATFORM_DEBUG_BREAK; } } +#define ALC_CHECK_ERROR(method) \ + { \ + int alError = alGetError(); \ + if (alError != 0) \ + { \ + LOG(Error, "OpenAL method {0} failed with error 0x{1:X} (at line {2})", TEXT(#method), alError, __LINE__ - 1); \ + } \ + } #endif #if ALC_MULTIPLE_LISTENERS