oops, initialize source's transform

otherwise we'll get NaNs up in here
This commit is contained in:
Nevyn Bengtsson 2020-12-11 00:11:36 +01:00 committed by Bjorn
parent 6d62e634d4
commit d8dd09eb8d
1 changed files with 1 additions and 0 deletions

View File

@ -306,6 +306,7 @@ Source* lovrSourceCreate(SoundData* sound, bool spatial) {
source->volume = 1.f;
source->spatial = spatial;
mat4_identity(source->transform);
_lovrSourceAssignConverter(source);
return source;