mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Attempt to fix #859
This commit is contained in:
parent
bc381a8459
commit
a560909b6d
|
@ -100,7 +100,10 @@ void Audio::openOutput(const QString& outDevDescr)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (alContext)
|
if (alContext)
|
||||||
|
{
|
||||||
|
alcMakeContextCurrent(nullptr);
|
||||||
alcDestroyContext(alContext);
|
alcDestroyContext(alContext);
|
||||||
|
}
|
||||||
alContext=alcCreateContext(alOutDev,nullptr);
|
alContext=alcCreateContext(alOutDev,nullptr);
|
||||||
if (!alcMakeContextCurrent(alContext))
|
if (!alcMakeContextCurrent(alContext))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user