When I run the example code from step025 compiled with GCC with the address sanitizer enabled, with the wgpu-native backend, it reports many direct leaks of objects allocated from the function wgpuSurfaceGetCurrentTexture. In commit ba57c81 the wgpuTextureRelease function is specifically not called on the surface texture for wgpu-native backends. When I do call it, the application crashes indeed. Am I missing something? Is this a bug in wgpu-native?
When I run the example code from step025 compiled with GCC with the address sanitizer enabled, with the wgpu-native backend, it reports many direct leaks of objects allocated from the function
wgpuSurfaceGetCurrentTexture. In commit ba57c81 thewgpuTextureReleasefunction is specifically not called on the surface texture for wgpu-native backends. When I do call it, the application crashes indeed. Am I missing something? Is this a bug in wgpu-native?