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.js — createPattern() 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.