mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-12 20:25:30 +00:00
Added a potential workaround to OpenAL SI/Linux crashes.
This commit is contained in:
parent
8f17ac3473
commit
dcce9fcf73
|
@ -306,7 +306,11 @@ namespace OpenTK.Audio
|
|||
|
||||
CheckForAlcErrors();
|
||||
|
||||
MakeCurrent();
|
||||
// HACK: OpenAL SI on Linux/ALSA crashes on MakeCurrent. This hack avoids calling MakeCurrent when
|
||||
// an old OpenAL version is detect - it may affect outdated OpenAL versions different than OpenAL SI,
|
||||
// but it looks like a good compromise for now.
|
||||
if (available_devices.Count > 0)
|
||||
MakeCurrent();
|
||||
|
||||
CheckForAlcErrors();
|
||||
|
||||
|
|
Loading…
Reference in a new issue