fix(atlas): give back every GPU object when the globe goes

dispose() freed the world and region layers only; the ocean, arcs, outline, pick texture and framebuffer, status textures, shared buffers and programs stayed on the context, which React keeps alive across a remount, so each visit to the Atlas left them behind.
This commit is contained in:
Maurice
2026-11-29 10:42:19 +01:00
parent 9018ee8980
commit ab0e6fda8b
3 changed files with 44 additions and 4 deletions
+1
View File
@@ -154,6 +154,7 @@ export function createFakeGl(opts: FakeGlOptions = {}) {
),
getShaderInfoLog: vi.fn(() => (opts.shaderLog === undefined ? 'shader log' : opts.shaderLog)),
deleteShader: vi.fn((_s: FakeShader) => undefined),
deleteProgram: vi.fn((_p: FakeProgram) => undefined),
createProgram: vi.fn((): FakeProgram => {
const p: FakeProgram = {
kind: 'program',