mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 15:55:29 +00:00
Removed ifs in AL.GetSource (boolean) in favour of simple comparisons.
This commit is contained in:
parent
1474e3b9bc
commit
8feb1a79fe
|
@ -791,10 +791,7 @@ namespace OpenTK.Audio
|
|||
{
|
||||
int result;
|
||||
GetSource(sid, (ALGetSourcei)param, out result);
|
||||
if (result == 1)
|
||||
value = true;
|
||||
else
|
||||
value = false;
|
||||
value = result != 0;
|
||||
}
|
||||
|
||||
/// <summary>This function retrieves a bool property of a source.</summary>
|
||||
|
@ -806,10 +803,7 @@ namespace OpenTK.Audio
|
|||
{
|
||||
int result;
|
||||
GetSource((uint)sid, (ALGetSourcei)param, out result);
|
||||
if (result == 1)
|
||||
value = true;
|
||||
else
|
||||
value = false;
|
||||
value = result != 0;
|
||||
}
|
||||
|
||||
#endregion GetSourcei
|
||||
|
|
Loading…
Reference in a new issue