Don't destroy placeholder texture references until the end of a frame. #823
Labels
effort: Casual
Simple changes that shouldn't take too much time when you're already familiar with the codebase
topic: WebGPU Renderer
Related to the WebGpuRenderer
Milestone
Right now the placeholder textures of a material are destroyed right after the new ones have been created for that material.
But this makes it possible for there to be a brief moment where there are no references for that color, even though right after that another material could potentially create a new reference with the same color.
Ideally all the placeholder texture references of each material are collected while a frame is being rendered, and at the very end of the
render
call the reference is removed.The text was updated successfully, but these errors were encountered: