Examples: Use onLoad() in webgpu_materials.#31362
Conversation
When testing webgpu_materials in Chrome, there are no console warnings or errors. |
|
Sorry, I should have specified. I am testing in Firefox Nightly, on Mac. The test serializes an object definition to JSON and then restores it. In serialized form, the texture is represented as a data URL. When reconstructing the texture, an The problem is intermittent. It is more likely to happen on the initial page load and less likely to happen on a subsequent reload. If I comment out the call to |
onLoad() in webgpu_materials.

This fixes intermittent "Texture marked for update but image is incomplete" errors running the demo in Firefox, by waiting until the
onLoadevent has fired before adding the object to the scene.