Closed relaxslow closed 1 month ago
Does it fix the issue to also release the surface texture with wgpuTextureRelease(surfaceTexture.texture);
at the end of the loop?
yes ,wgpuTextureRelease(surfaceTexture.texture); solve the issue
That's curious because on my end I get a crash when releasing the surface texture, and the official spec suggests that wgpuSurfacePresent
should take care of releasing whatever wgpuSurfaceGetCurrentTexture
created.
below is part of my code