mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-03 11:41:03 +00:00
Trying compatible defaults, to resolve crash on linux.
This commit is contained in:
parent
3505236ee2
commit
f41e240ede
|
@ -213,7 +213,7 @@ namespace OpenTK.Audio
|
|||
throw new AudioDeviceException("The specified audio device does not exist or is tied up by another application.");
|
||||
|
||||
device_name = device;
|
||||
|
||||
/*
|
||||
// Build the attribute list
|
||||
List<int> attributes = new List<int>();
|
||||
|
||||
|
@ -241,6 +241,8 @@ namespace OpenTK.Audio
|
|||
}
|
||||
|
||||
context_handle = Alc.CreateContext(device_handle, attributes.ToArray());
|
||||
*/
|
||||
context_handle = Alc.CreateContext(device_handle, (int[])null);
|
||||
if (context_handle == IntPtr.Zero)
|
||||
{
|
||||
Alc.CloseDevice(device_handle);
|
||||
|
|
Loading…
Reference in a new issue