ebitengine / purego

Apache License 2.0
1.94k stars 63 forks source link

all: struct return fixes #221

Closed TotallyGamerJet closed 3 months ago

TotallyGamerJet commented 3 months ago

On amd64, there was a crash when calling objc.Send with a struct return type. This was due to calling the wrong objc message send function.

On arm64, if a struct return contained structs that only contained floats it would expect it to be in R8 instead of the expected float registers

Closes #223

TotallyGamerJet commented 3 months ago

@hajimehoshi if this does fix the issue in ebitengine should this be cherry-picked for 0.7?

hajimehoshi commented 3 months ago

Confirmed this worked perfectly with Ebitengine. I'll update go.mod.