floooh / sokol

minimal cross-platform standalone C headers
https://floooh.github.io/sokol-html5
zlib License
7.12k stars 501 forks source link

Fix Managed buffers updates on Metal with discrete GPU #961

Closed valentinivanov closed 11 months ago

valentinivanov commented 11 months ago

It seems that a typo in enum names prevented Metal buffer updates in Managed mode on Metal backend with a discrete GPU (for example, MBP 2019 16" with AMD graphics). As a result many samples relying on buffer updates wouldn't display anything (i.e. ImGUI, Nuklear, animations etc).

floooh commented 11 months ago

Wow yeah, definitely a bug. Thanks for catching that. Unfortunately I can't directly test this since I only have an M1 Mac and mid-2014 Intel Mac for testing.

floooh commented 11 months ago

And merged, thanks!