aboutsummaryrefslogtreecommitdiffstats
path: root/alc/device.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-11-19 20:04:10 -0800
committerChris Robinson <[email protected]>2021-11-19 20:04:10 -0800
commit0c99a6b316b7e52c12a25d50550291562430834d (patch)
tree329d296c689215a6e9a712920189e9e5e853ca42 /alc/device.cpp
parent6e2c1b843132be98c016920d7e790aab69b64272 (diff)
Make the backend pointer part of ALCdevice instead of DeviceBase
Diffstat (limited to 'alc/device.cpp')
-rw-r--r--alc/device.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/alc/device.cpp b/alc/device.cpp
index 41ef6d44..01153d51 100644
--- a/alc/device.cpp
+++ b/alc/device.cpp
@@ -25,17 +25,8 @@ using voidp = void*;
} // namespace
-/* This should be in core/device.cpp. */
-DeviceBase::DeviceBase(DeviceType type) : Type{type}, mContexts{&sEmptyContextArray}
-{
-}
-
-DeviceBase::~DeviceBase()
-{
- auto *oldarray = mContexts.exchange(nullptr, std::memory_order_relaxed);
- if(oldarray != &sEmptyContextArray) delete oldarray;
-}
-
+ALCdevice::ALCdevice(DeviceType type) : DeviceBase{type}
+{ }
ALCdevice::~ALCdevice()
{