mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
moved back update cycle constant looping override for static sources
--HG-- branch : minor
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user