moved back update cycle constant looping override for static sources

--HG--
branch : minor
This commit is contained in:
rcoaxil
2016-10-18 05:33:34 +03:00
parent b337e0ff6f
commit 9bed2ac33a
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -280,7 +280,12 @@ bool Source::update()
switch (type)
{
case TYPE_STATIC:
{
// Looping mode could have changed.
- // FIXME: make looping mode change atomically so this is not needed
alSourcei(source, AL_LOOPING, isLooping() ? AL_TRUE : AL_FALSE);
return !isFinished();
}
case TYPE_STREAM:
if (!isFinished())
{