mirror of
https://github.com/love2d/love.git
synced 2026-08-21 05:00:08 +02:00
Merged in TannerRogalsky/love/source_relative_bug_fix (pull request #54)
Source:setRelative bug fix
This commit is contained in:
@@ -574,7 +574,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