Remove breakpoint on OpenAL error
This commit is contained in:
@@ -24,7 +24,14 @@
|
|||||||
#if BUILD_RELEASE
|
#if BUILD_RELEASE
|
||||||
#define ALC_CHECK_ERROR(method)
|
#define ALC_CHECK_ERROR(method)
|
||||||
#else
|
#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
|
#endif
|
||||||
|
|
||||||
#if ALC_MULTIPLE_LISTENERS
|
#if ALC_MULTIPLE_LISTENERS
|
||||||
|
|||||||
Reference in New Issue
Block a user