mirror of https://github.com/bjornbytes/lovr.git
oops, initialize source's transform
otherwise we'll get NaNs up in here
This commit is contained in:
parent
6d62e634d4
commit
d8dd09eb8d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue