aboutsummaryrefslogtreecommitdiffstats
path: root/alc/context.cpp
diff options
context:
space:
mode:
authorChris Robinson <chris.kcat@gmail.com>2022-12-08 06:22:55 -0800
committerChris Robinson <chris.kcat@gmail.com>2022-12-08 06:22:55 -0800
commitb0be3bf883c147a87840b880a6b0a8db36333b6a (patch)
treea1c8bef78fe66a3d431609f3d3ffd3616790282e /alc/context.cpp
parent4c2a96e2c856c07aead4ea5679d27310743b45ae (diff)
Rename a potentially confusing member function
Diffstat (limited to 'alc/context.cpp')
-rw-r--r--alc/context.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/context.cpp b/alc/context.cpp
index 07ae6434..906a160e 100644
--- a/alc/context.cpp
+++ b/alc/context.cpp
@@ -198,12 +198,12 @@ bool ALCcontext::deinit()
{
WARN("%p released while current on thread\n", voidp{this});
sThreadContext.set(nullptr);
- release();
+ dec_ref();
}
ALCcontext *origctx{this};
if(sGlobalContext.compare_exchange_strong(origctx, nullptr))
- release();
+ dec_ref();
bool ret{};
/* First make sure this context exists in the device's list. */