Skip to content

step025 leaking memory in wgpuSurfaceGetCurrentTexture with wgpu-native? #59

Description

@meesvermeulen

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions