diff options
Diffstat (limited to 'al/debug.cpp')
-rw-r--r-- | al/debug.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/al/debug.cpp b/al/debug.cpp index efc7fc09..56705c65 100644 --- a/al/debug.cpp +++ b/al/debug.cpp @@ -471,6 +471,7 @@ FORCE_ALIGN ALuint AL_APIENTRY alGetDebugMessageLogDirectEXT(ALCcontext *context if(avail < tocopy) return i; std::copy_n(entry.mMessage.data(), tocopy, logBuf+logBufWritten); + logBufWritten += static_cast<ALsizei>(tocopy); } if(sources) sources[i] = GetDebugSourceEnum(entry.mSource); @@ -479,7 +480,6 @@ FORCE_ALIGN ALuint AL_APIENTRY alGetDebugMessageLogDirectEXT(ALCcontext *context if(severities) severities[i] = GetDebugSeverityEnum(entry.mSeverity); if(lengths) lengths[i] = static_cast<ALsizei>(tocopy); - logBufWritten += static_cast<ALsizei>(tocopy); context->mDebugLog.pop_front(); } |