ebitengine / purego

Apache License 2.0
1.94k stars 63 forks source link

Struct with float32s passed alongside other float32s as arguments is broken on GOARCH=amd64 #210

Closed SealOfTime closed 4 months ago

SealOfTime commented 4 months ago

https://gist.github.com/SealOfTime/f5a962a2182c1c9b264117ebac18fe50

When passing a structure, containing float32s, to a function alongside other float32 the resulting arguments are messed up.

Tested on GOOS=darwin GOARCH=amd64. Was able to reproduce with GOOS=linux by disabling panic, that restricts the feature only to darwin.

GOOS=darwin GOARCH=arm64 works well

SealOfTime commented 4 months ago

I will take a look at what I can do with it on this week