Removed ifs in AL.GetSource (boolean) in favour of simple comparisons.
This commit is contained in:
parent
1474e3b9bc
commit
8feb1a79fe
1 changed files with 2 additions and 8 deletions
|
@ -791,10 +791,7 @@ namespace OpenTK.Audio
|
||||||
{
|
{
|
||||||
int result;
|
int result;
|
||||||
GetSource(sid, (ALGetSourcei)param, out result);
|
GetSource(sid, (ALGetSourcei)param, out result);
|
||||||
if (result == 1)
|
value = result != 0;
|
||||||
value = true;
|
|
||||||
else
|
|
||||||
value = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>This function retrieves a bool property of a source.</summary>
|
/// <summary>This function retrieves a bool property of a source.</summary>
|
||||||
|
@ -806,10 +803,7 @@ namespace OpenTK.Audio
|
||||||
{
|
{
|
||||||
int result;
|
int result;
|
||||||
GetSource((uint)sid, (ALGetSourcei)param, out result);
|
GetSource((uint)sid, (ALGetSourcei)param, out result);
|
||||||
if (result == 1)
|
value = result != 0;
|
||||||
value = true;
|
|
||||||
else
|
|
||||||
value = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion GetSourcei
|
#endregion GetSourcei
|
||||||
|
|
Loading…
Reference in a new issue