mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Use passed value when setting a Source's relative state instead of the stale, cached value.
--HG-- branch : source_relative_bug_fix
This commit is contained in:
@@ -537,7 +537,7 @@ void Source::setRelative(bool enable)
|
||||
throw SpatialSupportException();
|
||||
|
||||
if (valid)
|
||||
alSourcei(source, AL_SOURCE_RELATIVE, relative ? AL_TRUE : AL_FALSE);
|
||||
alSourcei(source, AL_SOURCE_RELATIVE, enable ? AL_TRUE : AL_FALSE);
|
||||
|
||||
relative = enable;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user