kpreid / all-is-cubes

Yet another block/voxel game; in this one the blocks are made out of blocks. Runs in browsers on WebGL+WebAssembly.
https://kpreid.dreamwidth.org/tag/all+is+cubes
Apache License 2.0
164 stars 8 forks source link

Texture reallocation copy fails on WebGL #391

Open kpreid opened 1 year ago

kpreid commented 1 year ago

As of commit e4044db0d4312ab92c93474b066444caf166e662, the wgpu renderer supports reallocating the block texture atlas as needed. However, copying the old texture to the new texture silently fails under WebGL. This is plausibly a bug in wgpu, but we need to construct a standalone repro to report it usefully and confidently.

For now, I have added a workaround of copying from the CPU-side tiles instead of the old texture, but that wastes CPU time on the copies.

kpreid commented 10 months ago

Testing: this bug is not fixed by wgpu 0.19.0.

kpreid commented 4 months ago

Testing: this bug is not fixed by wgpu 22.0.0.