Skip to content

WebGL: createPattern leaks textures when changing repeat mode #1278

@obiot

Description

@obiot

Description

When createPattern is called with a different repeat mode on the same image, it creates a new TextureAtlas and uploads it to the GPU, but never removes the previous texture from the cache or GPU memory.

Each call with a changed repeat mode leaks a texture.

Location: src/video/webgl/webgl_renderer.jscreatePattern() method

Expected behavior

When creating a pattern with a new repeat mode for an image that already has a cached pattern texture, the old cache entry and GPU texture should be cleaned up before uploading the new one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions