aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alMain.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-18 08:14:23 -0800
committerChris Robinson <[email protected]>2018-11-18 08:14:23 -0800
commitef7995cfd086dd1b32d85bf214b66da37e6550c5 (patch)
tree27e3255f26ca61efc521b5680da2acee90151787 /OpenAL32/Include/alMain.h
parentaef52be4324740bdd23c29ce3aef1027357f9694 (diff)
Fix the initial device refcount
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r--OpenAL32/Include/alMain.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 95753cc4..e31d0146 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -573,7 +573,7 @@ typedef struct RealMixParams {
typedef void (*POSTPROCESS)(ALCdevice *device, ALsizei SamplesToDo);
struct ALCdevice_struct {
- RefCount ref{0u};
+ RefCount ref{1u};
ATOMIC(ALenum) Connected{AL_TRUE};
DeviceType Type{};