mirror of
https://github.com/love2d/love.git
synced 2026-08-19 12:14:20 +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();
|
throw SpatialSupportException();
|
||||||
|
|
||||||
if (valid)
|
if (valid)
|
||||||
alSourcei(source, AL_SOURCE_RELATIVE, relative ? AL_TRUE : AL_FALSE);
|
alSourcei(source, AL_SOURCE_RELATIVE, enable ? AL_TRUE : AL_FALSE);
|
||||||
|
|
||||||
relative = enable;
|
relative = enable;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user