weBIGeo / webigeo

Rendering system for weBIGeo.
GNU General Public License v3.0
4 stars 0 forks source link

`wgpuBufferGetMapState` buggy on Web #27

Open GeraldKimmersdorfer opened 4 months ago

GeraldKimmersdorfer commented 4 months ago

On the web wgpuBufferGetMapState seems to return 0 in any state. 0 is not even a valid option for WGPUBufferMapState.

On native the function returns the appropriate values. Maybe an emscripten bug?

I'll introduce a manual flag in our RawBuffer-Implementation which we can then use instead.

Originally posted by @GeraldKimmersdorfer in https://github.com/weBIGeo/webigeo/issues/26#issuecomment-2259959378

pkomon-tgm commented 4 months ago

Seems to be an emscripten bug where wgpuBufferGetMapState's return values don't align with WGPUBufferMapState enum values.

See https://github.com/emscripten-core/emscripten/issues/22300

pkomon-tgm commented 3 months ago

Update: Our PR was merged three weeks ago and is included in the emscripten 3.1.65 (released two weeks ago)

Therefore, this issue will be fixed when we update the emscripten version again.