vkoskiv / c-ray

c-ray is a small, simple path tracer written in C
MIT License
802 stars 43 forks source link

Rendering protocol doesn't work across architectures #104

Closed vkoskiv closed 3 years ago

vkoskiv commented 3 years ago

I've missed a ntoh/hton somewhere. Connections cross-arch like x86_64->ARM or x86_64->PowerPC fail right away.

vkoskiv commented 3 years ago

Wasn't a missing byte order swap, I was using size_t for the transfer header value, which varies in size across different architectures. Swapping it out for an uint64_t resolved the issue.