Removed ifs in AL.GetSource (boolean) in favour of simple comparisons.

This commit is contained in:
the_fiddler 2008-04-06 14:29:16 +00:00
parent 1474e3b9bc
commit 8feb1a79fe

View file

@ -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